diff options
author | Florin Dinu <contact@florindinu.ro> | 2015-11-25 11:55:08 +0200 |
---|---|---|
committer | Florin Dinu <contact@florindinu.ro> | 2015-11-25 11:56:54 +0200 |
commit | f1354862d288f402d15283a06638f47937c005bb (patch) | |
tree | 98767c306e6a158aa27c1b5f1a9845a1adfe175a | |
parent | 450b88983f616b1e41bf0a53d38046b0041ec41f (diff) |
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.
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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() |