From 43e6d6577da2b4e6aa0e40da8f92654c11accc39 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 8 Feb 2020 20:59:59 -0500 Subject: [PATCH] debian: python woes --- CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ea84bfc6a..96bd54b97 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -592,15 +592,19 @@ if(${BUILD_PYTHON}) install( CODE "execute_process( COMMAND - ${Python3_EXECUTABLE} ${SETUP_PY} install --root=${CMAKE_SOURCE_DIR}/debian/tmp --install-layout=deb --prefix=/usr --skip-build + ${Python3_EXECUTABLE} ${SETUP_PY} install --prefix=/usr --skip-build --root=${CMAKE_SOURCE_DIR}/debian/tmp --install-layout=deb WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/python )" ) else() install( - CODE - "execute_process(COMMAND ${Python3_EXECUTABLE} ${SETUP_PY} install --prefix=${CMAKE_INSTALL_PREFIX})" + CODE "execute_process( + COMMAND + ${Python3_EXECUTABLE} ${SETUP_PY} install --prefix=${CMAKE_INSTALL_PREFIX} --skip-build + WORKING_DIRECTORY + ${CMAKE_CURRENT_BINARY_DIR}/python + )" ) endif() endif()