cmake: Fix python install (Fix #3967)

This commit is contained in:
Corentin Le Molgat
2023-10-30 14:29:55 +01:00
parent 003f9f54ce
commit 9eafea2204

View File

@@ -1,3 +1,12 @@
if(NOT UNIX)
execute_process(
WORKING_DIRECTORY @PROJECT_BINARY_DIR@/python
COMMAND @Python3_EXECUTABLE@ -m pip install
--find-links=dist @PYTHON_PROJECT@==@PROJECT_VERSION@
)
return()
endif()
if(DEFINED ENV{DESTDIR})
# If DESTDIR is not absolute path, make it relative to @PROJECT_BINARY_DIR@
# like any install() command.