浏览代码

Fix dependency of Scripting/Python/{Core, Widgets} options

Only Scripting/Python/Core is required to successfully build the wrapping.

Additionally, the widget library will be implicitly enabled due to the
library dependencies set in target_libraries.cmake

See #258
Jean-Christophe Fillion-Robin 11 年之前
父节点
当前提交
a7b098b952
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      CMakeLists.txt

+ 3 - 3
CMakeLists.txt

@@ -482,11 +482,11 @@ ctk_lib_option(ImageProcessing/ITK/Core
                "Build the ITK Core library" OFF)
 
 ctk_lib_option(Scripting/Python/Core
-               "Build the Python Core library" OFF)
+               "Build the Python Core library" OFF
+               CTK_ENABLE_Python_Wrapping)
 
 ctk_lib_option(Scripting/Python/Widgets
-               "Build the Python Widgets library" OFF
-               CTK_LIB_Widgets AND CTK_ENABLE_Python_Wrapping)
+               "Build the Python Widgets library" OFF)
 
 ctk_lib_option(Visualization/VTK/Core
                "Build the VTK Core library" OFF)