File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ IF (ENABLE_PYTHON3 AND NOT DEFINED PythonLibs_FIND_VERSION)
55 SET (PythonLibs_FIND_VERSION_MAJOR 2)
66ENDIF (ENABLE_PYTHON3 AND NOT DEFINED PythonLibs_FIND_VERSION)
77
8- FIND_PACKAGE (PythonLibs REQUIRED)
9- IF (PYTHONLIBS_VERSION_STRING MATCHES "^([0-9.]+)" )
8+ FIND_PACKAGE (PythonInterp ${python_version} REQUIRED)
9+ IF (PYTHON_VERSION_STRING MATCHES "^([0-9.]+)" )
1010 SET (python_version "${CMAKE_MATCH_1} " )
1111ELSE ()
12- MESSAGE (FATAL_ERROR "PythonLibs version format unknown '${PYTHONLIBS_VERSION_STRING } '" )
12+ MESSAGE (FATAL_ERROR "PythonInterp version format unknown '${PYTHON_VERSION_STRING } '" )
1313ENDIF ()
14- FIND_PACKAGE (PythonInterp ${python_version} REQUIRED)
14+ FIND_PACKAGE (PythonLibs ${python_version} REQUIRED)
1515
1616EXECUTE_PROCESS (COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib(True))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
1717
You can’t perform that action at this time.
0 commit comments