소스 검색

Print message if CTK_{APP, LIB, PLUGIN} options set to ON because of BUILD_ALL options

See #258
Jean-Christophe Fillion-Robin 12 년 전
부모
커밋
05d881ad64
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      CMake/ctkMacroOptionUtils.cmake

+ 3 - 0
CMake/ctkMacroOptionUtils.cmake

@@ -37,6 +37,7 @@ macro(ctk_lib_option name doc default)
   ctk_option(CTK_LIB ${name} ${doc} ${default} ${ARGN})
   if(CTK_BUILD_ALL_LIBRARIES)
     set(CTK_LIB_${name} 1)
+    message(STATUS "Enabling [CTK_LIB_${name}] because of [CTK_BUILD_ALL_LIBRARIES:${CTK_BUILD_ALL_LIBRARIES}] evaluates to True")
   endif()
 endmacro()
 
@@ -44,6 +45,7 @@ macro(ctk_plugin_option name doc default)
   ctk_option(CTK_PLUGIN ${name} ${doc} ${default} ${ARGN})
   if(CTK_BUILD_ALL_PLUGINS)
     set(CTK_PLUGIN_${name} 1)
+    message(STATUS "Enabling [CTK_PLUGIN_${name}] because of [CTK_BUILD_ALL_PLUGINS:${CTK_BUILD_ALL_PLUGINS}] evaluates to True")
   endif()
 endmacro()
 
@@ -51,6 +53,7 @@ macro(ctk_app_option name doc default)
   ctk_option(CTK_APP ${name} ${doc} ${default} ${ARGN})
   if(CTK_BUILD_ALL_APPS)
     set(CTK_APP_${name} 1)
+    message(STATUS "Enabling [CTK_APP_${name}] because of [CTK_BUILD_ALL_APPS:${CTK_BUILD_ALL_APPS}] evaluates to True")
   endif()
 endmacro()