From f2b61846d10388ec658c58f47b24b14e5b9489fc Mon Sep 17 00:00:00 2001 From: Johann Klähn Date: Tue, 6 Jan 2015 10:03:03 +0100 Subject: use the same python version for lib and interpreter Currently the path to install the python library in is determined by running the python interpreter. We do not want to end up installing a library built for python2 in the python3 library path! --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 70b5fe1a..ca82084e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,6 +52,7 @@ endif() ######################################################################## +set(Python_ADDITIONAL_VERSIONS 2.7 2.6) find_package(PythonInterp) # Used for running tests if (USE_PYTHON) @@ -59,7 +60,6 @@ if (USE_PYTHON) message(ERROR "Building the python module requires BUILD_LIBRARY=ON.") endif() - set(Python_ADDITIONAL_VERSIONS 2.7 2.6) find_package(PythonLibs) if (PYTHONLIBS_FOUND) set(BOOST_PYTHON python) -- cgit v1.2.3