]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
CMake: simplifying Python detection mechanism.
authorabn <adrien.bruneton@cea.fr>
Thu, 4 Feb 2016 10:52:40 +0000 (11:52 +0100)
committerrnv <rnv@opencascade.com>
Mon, 15 Feb 2016 10:22:52 +0000 (13:22 +0300)
CMakeLists.txt

index 7c960904736f445338628e7157c6733da96c6358..d101fc43e4bc7fc30e0d7499c6524be93779eb34 100644 (file)
@@ -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