Forráskód Böngészése

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 éve
szülő
commit
a7b098b952
1 módosított fájl, 3 hozzáadás és 3 törlés
  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)