debian: python woes

This commit is contained in:
nick black 2020-02-08 20:59:59 -05:00
parent e883ed805a
commit 43e6d6577d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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()