diff options
author | Davide Pesavento <pesa@gentoo.org> | 2017-05-04 16:41:31 +0200 |
---|---|---|
committer | Davide Pesavento <davidepesa@gmail.com> | 2017-05-06 03:38:51 +0000 |
commit | a3027cc4e5cc30663f700284b0dc6a19640ccca7 (patch) | |
tree | 86be6dace3f7a72c3219e04eff81d2ef26c4c473 | |
parent | c46d6813e5efa353e569b13d09943a6e6151c0f0 (diff) |
CMakeLists.txt: find python interpreter first
CMake documentation recommends ordering find_package(PythonInterp)
before find_package(PythonLibs) when both are called.
Change-Id: Ic09f40b999d446146f58c1e6dab2ba920d8821a5
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index efc8f687..af8b5fab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,11 +11,11 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Macros/ option(USE_PYTHON_VERSION "Use specific python version to build pyside2." "") if (USE_PYTHON_VERSION) - find_package(PythonLibs ${USE_PYTHON_VERSION} REQUIRED) find_package(PythonInterp ${USE_PYTHON_VERSION} REQUIRED) + find_package(PythonLibs ${USE_PYTHON_VERSION} REQUIRED) else() - find_package(PythonLibs 2.6) find_package(PythonInterp 2.6) + find_package(PythonLibs 2.6) endif() # Queries the python sysconfig for the abi flags which need to be inserted into extension suffixes. |