Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
a7b098b952
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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)