aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2015-09-28 20:34:24 +0200
committerChristian Tismer <tismer@stackless.com>2015-09-28 20:34:24 +0200
commit1c4e82d9ca69c7ae391a5ee4e0e01ff29841d8bc (patch)
tree5fa4a85fd5db30c971eb26fbd92ca972748c55d4
parent7063ac02ede6de419e89586c51685dc20dc46dd4 (diff)
parenta5e091efca39ae666c764b536f9779582493a66e (diff)
Merge pull request #9 from thopiekar/cmake-work
Fix for empty PYTHON*_VERSION_* variables
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 392bda0..9174fbb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,6 +21,7 @@ option(USE_PYTHON3 "Use python3 libraries to build shiboken2." FALSE)
if (USE_PYTHON3)
find_package(Python3Libs)
+ find_package(Python3Interp)
find_package(Python3InterpWithDebug)
#use common vars
set(PYTHONLIBS_FOUND ${PYTHON3LIBS_FOUND})
@@ -34,6 +35,7 @@ if (USE_PYTHON3)
set(PYTHON_VERSION_PATCH ${PYTHON3_VERSION_PATCH})
else()
find_package(PythonLibs 2.6)
+ find_package(PythonInterp)
find_package(PythonInterpWithDebug)
endif()