|
@@ -170,16 +170,6 @@ FOREACH(app ${CTK_APPLICATIONS_SUBDIRS})
|
|
|
ENDFOREACH()
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
-# Convenient function allowing to define superbuild arg
|
|
|
-#
|
|
|
-FUNCTION(ctk_set_superbuild_boolean_arg ctk_cmake_var)
|
|
|
- SET(superbuild_${ctk_cmake_var} OFF)
|
|
|
- IF(DEFINED ${ctk_cmake_var})
|
|
|
- SET(superbuild_${ctk_cmake_var} ${${ctk_cmake_var}} PARENT_SCOPE)
|
|
|
- ENDIF()
|
|
|
-ENDFUNCTION()
|
|
|
-
|
|
|
-#-----------------------------------------------------------------------------
|
|
|
# Set superbuild boolean args
|
|
|
#
|
|
|
|
|
@@ -197,8 +187,7 @@ SET(ctk_cmake_boolean_args
|
|
|
|
|
|
SET(ctk_superbuild_boolean_args)
|
|
|
FOREACH(ctk_cmake_arg ${ctk_cmake_boolean_args})
|
|
|
- ctk_set_superbuild_boolean_arg(${ctk_cmake_arg})
|
|
|
- LIST(APPEND ctk_superbuild_boolean_args -D${ctk_cmake_arg}:BOOL=${superbuild_${ctk_cmake_arg}})
|
|
|
+ LIST(APPEND ctk_superbuild_boolean_args -D${ctk_cmake_arg}:BOOL=${${ctk_cmake_arg}})
|
|
|
ENDFOREACH()
|
|
|
|
|
|
# MESSAGE("CMake args:")
|