소스 검색

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)