Commit 3e8d89df authored by jcfr's avatar jcfr

STYLE: Rename Slicer_USE_ITKPython to Slicer_BUILD_ITKPython

From: Johan Andruejol <johan.andruejol@kitware.com>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@24893 3bd1e089-480b-0410-8dfb-8563597acbee
parent 71bbf91b
......@@ -283,8 +283,8 @@ mark_as_superbuild(Slicer_USE_QtTesting)
option(Slicer_USE_SimpleITK "Build Slicer with SimpleITK support" ON)
mark_as_superbuild(Slicer_USE_SimpleITK)
option(Slicer_USE_ITKPython "Build Python wrapping for ITK" OFF)
mark_as_superbuild(Slicer_USE_ITKPython)
option(Slicer_BUILD_ITKPython "Build Python wrapping for ITK" OFF)
mark_as_superbuild(Slicer_BUILD_ITKPython)
#
# SimpleITK has large internal libraries, which take an extremely long
......
......@@ -6,7 +6,7 @@ set(${proj}_DEPENDENCIES "zlib")
if(Slicer_BUILD_DICOM_SUPPORT)
list(APPEND ${proj}_DEPENDENCIES DCMTK)
endif()
if(Slicer_USE_ITKPython)
if(Slicer_BUILD_ITKPython)
list(APPEND ${proj}_DEPENDENCIES Swig python)
endif()
......@@ -38,7 +38,7 @@ if(NOT DEFINED ITK_DIR AND NOT ${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj})
set(EXTERNAL_PROJECT_OPTIONAL_CMAKE_CACHE_ARGS)
if(Slicer_USE_PYTHONQT OR Slicer_USE_ITKPython)
if(Slicer_USE_PYTHONQT OR Slicer_BUILD_ITKPython)
# XXX Ensure python executable used for ITKModuleHeaderTest
# is the same as Slicer.
# This will keep the sanity check implemented in SlicerConfig.cmake
......@@ -47,7 +47,7 @@ if(NOT DEFINED ITK_DIR AND NOT ${CMAKE_PROJECT_NAME}_USE_SYSTEM_${proj})
-DPYTHON_EXECUTABLE:PATH=${PYTHON_EXECUTABLE}
)
endif()
if(Slicer_USE_ITKPython)
if(Slicer_BUILD_ITKPython)
list(APPEND EXTERNAL_PROJECT_OPTIONAL_CMAKE_CACHE_ARGS
-DPYTHON_LIBRARY:FILEPATH=${PYTHON_LIBRARY}
-DPYTHON_INCLUDE_DIR:PATH=${PYTHON_INCLUDE_DIR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment