Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F244314
sitk-patch.diff
aurelien (Aurélien Labrosse)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
aurelien
Mar 6 2017, 5:43 PM
2017-03-06 17:43:56 (UTC+1)
Size
1 KB
Referenced Files
None
Subscribers
None
sitk-patch.diff
View Options
diff --git a/CMakeExternals/SimpleITK.cmake b/CMakeExternals/SimpleITK.cmake
index 972da24..c62bde9 100644
--- a/CMakeExternals/SimpleITK.cmake
+++ b/CMakeExternals/SimpleITK.cmake
@@ -110,11 +110,19 @@ if(MITK_USE_SimpleITK)
endif()
if( MITK_USE_SYSTEM_PYTHON )
- ExternalProject_Add_Step(${proj} sitk_python_install_step
- COMMAND PYTHONUSERBASE=${_install_dir} ${PYTHON_EXECUTABLE} setup.py install --prefix=${_install_dir}
- DEPENDEES install
- WORKING_DIRECTORY ${_sitk_build_dir}/Wrapping/PythonPackage
- )
+ if(WIN32)
+ # if environment variable PYTHONUSERBASE does not
+ # contain ${_install_dir}, installation here will fail.
+ ExternalProject_Add_Step(${proj} sitk_python_install_step
+ COMMAND ${PYTHON_EXECUTABLE} setup.py install --prefix=${_install_dir}
+ DEPENDEES install
+ WORKING_DIRECTORY ${_sitk_build_dir}/Wrapping/PythonPackage)
+ else()
+ ExternalProject_Add_Step(${proj} sitk_python_install_step
+ COMMAND PYTHONUSERBASE=${_install_dir} ${PYTHON_EXECUTABLE} setup.py install --prefix=${_install_dir}
+ DEPENDEES install
+ WORKING_DIRECTORY ${_sitk_build_dir}/Wrapping/PythonPackage)
+ endif()
else()
ExternalProject_Add_Step(${proj} sitk_python_install_step
COMMAND ${PYTHON_EXECUTABLE} setup.py install --prefix=${_install_dir}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
82203
Default Alt Text
sitk-patch.diff (1 KB)
Attached To
Mode
T22591: Error compiling Mitk 2016-11 : Error on SimpleITK installation phase (patch provided)
Attached
Detach File
Event Timeline
Log In to Comment