From e415b22a97d869a26217f47c6fc7d477d7e16fee Mon Sep 17 00:00:00 2001 From: lorenz Date: Thu, 25 Mar 2021 16:05:37 +0100 Subject: [PATCH] cmake: update command to find python-site-packages https://stackoverflow.com/a/40006251 --- src/Ext/freecad/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ext/freecad/CMakeLists.txt b/src/Ext/freecad/CMakeLists.txt index d9004275b6..baf6df2e52 100644 --- a/src/Ext/freecad/CMakeLists.txt +++ b/src/Ext/freecad/CMakeLists.txt @@ -1,5 +1,5 @@ EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c -"from distutils.sysconfig import get_python_lib; print(get_python_lib())" +"from distutils.sysconfig import get_python_lib; print(get_python_lib(prefix='', plat_specific=True))" OUTPUT_VARIABLE python_libs OUTPUT_STRIP_TRAILING_WHITESPACE ) SET(PYTHON_MAIN_DIR ${python_libs})