From f1354862d288f402d15283a06638f47937c005bb Mon Sep 17 00:00:00 2001 From: Florin Dinu Date: Wed, 25 Nov 2015 11:55:08 +0200 Subject: Improve CMake FindPythonLibs reliability If we find the Python interpreter first, FindPythonLibs will take advantage of the interpreter's location. This will improve reliability on systems that have multiple Python versions installed. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9174fbb..e473749 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,8 +34,8 @@ if (USE_PYTHON3) set(PYTHON_VERSION_MINOR ${PYTHON3_VERSION_MINOR}) set(PYTHON_VERSION_PATCH ${PYTHON3_VERSION_PATCH}) else() - find_package(PythonLibs 2.6) find_package(PythonInterp) + find_package(PythonLibs 2.6) find_package(PythonInterpWithDebug) endif() -- cgit v1.2.3