install python package to prefix

This commit is contained in:
Christian Rauch 2022-10-16 12:18:46 +02:00
parent 88c2a55fb0
commit 524c4bc463
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ install(FILES ${man_3_SRC}
find_package(Python COMPONENTS Interpreter QUIET)
if(Python_FOUND)
install(CODE "execute_process(COMMAND ${Python_EXECUTABLE} ${CMAKE_SOURCE_DIR}/setup.py install)")
install(CODE "execute_process(COMMAND ${Python_EXECUTABLE} ${CMAKE_SOURCE_DIR}/setup.py install --prefix=${CMAKE_INSTALL_PREFIX})")
endif()
# package project