Skip to content
Snippets Groups Projects
Commit 475b2604 authored by Simon Désaulniers's avatar Simon Désaulniers
Browse files

cmake: pass $DESTDIR environnement var to setup.py

parent 9e461e09
No related branches found
No related tags found
No related merge requests found
...@@ -8,4 +8,4 @@ add_custom_target(python ALL ...@@ -8,4 +8,4 @@ add_custom_target(python ALL
COMMAND python3 setup.py build COMMAND python3 setup.py build
DEPENDS opendht opendht_cpp.pxd opendht.pyx) DEPENDS opendht opendht_cpp.pxd opendht.pyx)
install(CODE "execute_process(COMMAND python3 setup.py install WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})") install(CODE "execute_process(COMMAND python3 setup.py install --root=\$ENV{DESTDIR}/ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment