From edd120313caf03650daf32c7b9c383188061b5bc Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Sun, 8 Jul 2012 06:23:25 +0000 Subject: use FindPythonLibs to detect Python --- muse2/CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'muse2/CMakeLists.txt') diff --git a/muse2/CMakeLists.txt b/muse2/CMakeLists.txt index 3d91aa7e..a10c7a6d 100644 --- a/muse2/CMakeLists.txt +++ b/muse2/CMakeLists.txt @@ -247,10 +247,12 @@ endif (ENABLE_OSC) ## if (ENABLE_PYTHON) - PKG_CHECK_MODULES(PYTHON python>=2.4) - if (PYTHON_FOUND) - set(PYTHON_SUPPORT ON) - endif (PYTHON_FOUND) + include(FindPythonLibs) + if (PYTHONLIBS_FOUND) + if (NOT PYTHONLIBS_VERSION_STRING VERSION_LESS 2.4) + set(PYTHON_SUPPORT ON) + endif (NOT PYTHONLIBS_VERSION_STRING VERSION_LESS 2.4) + endif (PYTHONLIBS_FOUND) endif (ENABLE_PYTHON) ## -- cgit v1.2.3