blob: 7411d1927ff50fb239f356168ea0fd47e694988d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
=== modified file 'cmake/DejaDupMacros.cmake'
--- cmake/DejaDupMacros.cmake 2013-10-11 19:57:03 +0000
+++ cmake/DejaDupMacros.cmake 2013-11-09 05:59:00 +0000
@@ -34,19 +34,15 @@
endmacro()
macro(deja_enable_option)
- if(NOT ENABLE_${ARGV0})
- return() # nothing to do
- endif()
-
- deja_check_modules(${ARGV})
-
- if(NOT ${ARGV0}_FOUND)
- if(ENABLE_${ARGV0} STREQUAL "CHECK")
- set(ENABLE_${ARGV0} OFF)
- else()
- message(FATAL_ERROR "You enabled ${ARGV0}, but required dependencies could not be found")
+ if(ENABLE_${ARGV0})
+ deja_check_modules(${ARGV})
+ if(NOT ${ARGV0}_FOUND)
+ if(ENABLE_${ARGV0} STREQUAL "CHECK")
+ set(ENABLE_${ARGV0} OFF)
+ else()
+ message(FATAL_ERROR "You enabled ${ARGV0}, but required dependencies could not be found")
+ endif()
endif()
- return()
endif()
endmacro()
|