浏览代码

ENH: In CMakeLists.txt, change CTK_USE_{CTK-LIBNAME} to CTK_ENABLE_{CTK-LIBNAME}

Jean-Christophe Fillion-Robin 15 年之前
父节点
当前提交
65386fb0be
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      CMakeLists.txt

+ 2 - 2
CMakeLists.txt

@@ -114,7 +114,7 @@ OPTION(CTK_USE_KWSTYLE     "Enable sourcecode-based style tests." OFF)
 
 
 # Build options
 # Build options
 FOREACH(lib ${ctk_libs})
 FOREACH(lib ${ctk_libs})
-  OPTION(CTK_USE_${lib} "Enable ${lib} Support." ON)
+  OPTION(CTK_ENABLE_${lib} "Enable ${lib} Support." ON)
 ENDFOREACH()
 ENDFOREACH()
 
 
 #-----------------------------------------------------------------------------
 #-----------------------------------------------------------------------------
@@ -132,7 +132,7 @@ ENDIF()
 # Add subdirectories
 # Add subdirectories
 #
 #
 FOREACH(lib ${ctk_libs})
 FOREACH(lib ${ctk_libs})
-  IF (CTK_USE_${lib})
+  IF (CTK_ENABLE_${lib})
     ADD_SUBDIRECTORY(Libs/${lib})
     ADD_SUBDIRECTORY(Libs/${lib})
   ENDIF()
   ENDIF()
 ENDFOREACH()
 ENDFOREACH()