You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-backup/deja-dup/files/deja-dup-29.1-cmake-backpor...

33 lines
874 B

=== 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()