Skip to content

Commit

Permalink
Respect DESTDIR when installing Python packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry73204 committed Oct 26, 2024
1 parent 8c6f204 commit d5fb6ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ if(Python_Interpreter_FOUND)

add_custom_target(blickfeld-scanner-python ALL DEPENDS ${OUTPUT})

install(CODE "execute_process(WORKING_DIRECTORY \"${CMAKE_CURRENT_BINARY_DIR}\" COMMAND ${Python_EXECUTABLE} ${SETUP_PY} install)")
install(CODE "execute_process(WORKING_DIRECTORY \"${CMAKE_CURRENT_BINARY_DIR}\" COMMAND ${Python_EXECUTABLE} ${SETUP_PY} install --prefix=\$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX})")
endif()

0 comments on commit d5fb6ce

Please sign in to comment.