From a8c8858a1026eff9a6b0d58fc614514c4e8db54e Mon Sep 17 00:00:00 2001 From: Florian Rathgeber Date: Fri, 28 Oct 2016 13:20:56 +0100 Subject: [PATCH] ECC-296 Use DESTDIR as --root when installing Python bindings --- python/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index b8dff587b..062ed397a 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -53,6 +53,6 @@ if( HAVE_PYTHON ) # Build the extension module for use in install tree with RPATH pointing to install tree install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} setup.py build_ext --rpath ${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})") # Call distutils for installation - install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} setup.py install --prefix \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})") + install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} setup.py install --root \$ENV{DESTDIR}/ --prefix ${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})") endif()