blob: b4df798f302a8e1b8875241b499183ed789c87f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
diff --git a/cmake/SetupSubPyInstall.cmake.in b/cmake/SetupSubPyInstall.cmake.in
index 6080d9f4..ce50ab54 100644
--- a/cmake/SetupSubPyInstall.cmake.in
+++ b/cmake/SetupSubPyInstall.cmake.in
@@ -9,6 +9,7 @@ message(" CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}")
message(" CMAKE_CURRENT_BINARY_DIR: ${CMAKE_CURRENT_BINARY_DIR}")
execute_process(COMMAND ${PYTHON_EXECUTABLE} setup_sub.py install
"--prefix=${CMAKE_INSTALL_PREFIX}"
+ "--root=$ENV{DESTDIR}"
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
RESULT_VARIABLE res_var)
if(NOT "${res_var}" STREQUAL "0")
|