From 00d22deef0eb59b8e12b45bc50f44a76262a1873 Mon Sep 17 00:00:00 2001 From: barate Date: Mon, 21 Jan 2013 08:29:55 +0000 Subject: [PATCH] Fix Python libs detection problem with CMake when several versions are in the system --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 54d02e86b..d62d040b0 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,8 @@ find_package(Threads REQUIRED) # Python find_package(PythonInterp REQUIRED) +# Set PythonLibs_FIND_VERSION To avoid problems when several versions are in the system +SET(PythonLibs_FIND_VERSION ${PYTHON_VERSION_STRING}) find_package(PythonLibs REQUIRED) set(PYLOGLEVEL WARNING) -- 2.39.2