From: abn Date: Thu, 4 Feb 2016 10:52:40 +0000 (+0100) Subject: CMake: simplifying Python detection mechanism. X-Git-Tag: V7_8_0a2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=130aaeaca67bb04e0d0b319eabe959be1dbad9ca;p=modules%2Fmed.git CMake: simplifying Python detection mechanism. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7c9609047..d101fc43e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,9 +109,11 @@ IF(SALOME_BUILD_GUI) ENDIF(SALOME_BUILD_GUI) IF(SALOME_MED_ENABLE_PYTHON) - FIND_PACKAGE(SalomePython) + FIND_PACKAGE(SalomePythonInterp) + FIND_PACKAGE(SalomePythonLibs) FIND_PACKAGE(SalomeSWIG) - SALOME_LOG_OPTIONAL_PACKAGE(Python SALOME_MED_ENABLE_PYTHON) + SALOME_LOG_OPTIONAL_PACKAGE(PythonInterp SALOME_MED_ENABLE_PYTHON) + SALOME_LOG_OPTIONAL_PACKAGE(PythonLibs SALOME_MED_ENABLE_PYTHON) SALOME_LOG_OPTIONAL_PACKAGE(SWIG SALOME_MED_ENABLE_PYTHON) FIND_PACKAGE(SalomeOmniORBPy REQUIRED) # Set the extra flags for SWIG for numpy and scipy