blob: 0ddb05d26fa9fce038bcc4b673bf503f61e10c70 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
diff --git a/cmake/Modules/FindPythonSiteLibs.cmake b/cmake/Modules/FindPythonSiteLibs.cmake
index ab2931e..08e2c98 100644
--- a/cmake/Modules/FindPythonSiteLibs.cmake
+++ b/cmake/Modules/FindPythonSiteLibs.cmake
@@ -27,30 +27,9 @@
if (PYTHON_EXECUTABLE)
### PYTHON_SITELIB
- execute_process(
- COMMAND
- ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific=True, prefix=''))"
- OUTPUT_VARIABLE
- PYTHON_SITELIB_OUTPUT_VARIABLE
- RESULT_VARIABLE
- PYTHON_SITELIB_RESULT_VARIABLE
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- if (NOT PYTHON_SITELIB_RESULT_VARIABLE)
- file(TO_CMAKE_PATH "${PYTHON_SITELIB_OUTPUT_VARIABLE}" PYTHON_SITELIB)
- endif ()
+ file(TO_CMAKE_PATH "@siteDir@" PYTHON_SITELIB)
+
### PYTHON_SITEINC
- execute_process(
- COMMAND
- ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_inc; print(get_python_inc(plat_specific=True, prefix=''))"
- OUTPUT_VARIABLE
- PYTHON_SITEINC_OUTPUT_VARIABLE
- RESULT_VARIABLE
- PYTHON_SITEINC_RESULT_VARIABLE
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- if (NOT PYTHON_SITEINC_RESULT_VARIABLE)
- file(TO_CMAKE_PATH "${PYTHON_SITEINC_OUTPUT_VARIABLE}" PYTHON_SITEINC)
- endif ()
+ file(TO_CMAKE_PATH "@includeDir@" PYTHON_SITEINC)
endif (PYTHON_EXECUTABLE)
|