Commit 90d90b2d authored by James W. Barnett's avatar James W. Barnett
Browse files

support DESTDIR and CMAKE_INSTALL_PREFIX in PythonInstall

parent 9e34d39e
...@@ -274,7 +274,7 @@ add_custom_target(PythonSdist ...@@ -274,7 +274,7 @@ add_custom_target(PythonSdist
) )
# Install binary module (to system location) # Install binary module (to system location)
set(PYTHON_SETUP_COMMAND "install") set(PYTHON_SETUP_COMMAND "install --root=\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/")
configure_file(pysetup.cmake.in configure_file(pysetup.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/pysetupinstall.cmake" @ONLY) "${CMAKE_CURRENT_BINARY_DIR}/pysetupinstall.cmake" @ONLY)
add_custom_target(PythonInstall add_custom_target(PythonInstall
......
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