aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2017-05-01 05:12:54 +0200
committerDavide Pesavento <davidepesa@gmail.com>2017-05-04 13:55:19 +0000
commit388d512b0903455236ec1057e8213204000f5b5d (patch)
tree7d8995f7043b81997859cc078d5a12d5450119ed
parentebd808fc7f088fae3445af6bab6ec09b32061287 (diff)
CMakeLists.txt: find python interpreter first
CMake documentation recommends ordering find_package(PythonInterp) before find_package(PythonLibs) when both are called. Change-Id: I582e1d2631f78bb0b9c864acf189ca5e50d976c5 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5fd2d9e..96d4ec5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,11 +20,11 @@ option(BUILD_TESTS "Build tests." TRUE)
option(USE_PYTHON_VERSION "Use specific python version to build shiboken2." "")
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()
## For debugging the PYTHON* variables