From: abn Date: Thu, 4 Feb 2016 10:53:17 +0000 (+0100) Subject: CMake: simplifying Python detection mechanism. X-Git-Tag: V7_8_0a2~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=70e8ed806218f4d1b798a9670fed6396c01e362c;p=modules%2Fparavis.git CMake: simplifying Python detection mechanism. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 08be4910..052e977d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,8 +91,8 @@ CMAKE_DEPENDENT_OPTION(SALOME_LIGHT_ONLY "Build SALOME Light only (no CORBA)" OF ## ## From KERNEL: ## - -FIND_PACKAGE(SalomePython REQUIRED) +FIND_PACKAGE(SalomePythonInterp REQUIRED) +FIND_PACKAGE(SalomePythonLibs REQUIRED) IF(NOT SALOME_LIGHT_ONLY) FIND_PACKAGE(SalomeOmniORB REQUIRED) diff --git a/src/Plugins/MEDReader/CMakeLists.txt b/src/Plugins/MEDReader/CMakeLists.txt index 36f86d08..9ceb8300 100644 --- a/src/Plugins/MEDReader/CMakeLists.txt +++ b/src/Plugins/MEDReader/CMakeLists.txt @@ -76,7 +76,8 @@ LIST(APPEND CMAKE_MODULE_PATH "${KERNEL_ROOT_DIR}/salome_adm/cmake_files") LIST(APPEND CMAKE_MODULE_PATH "${MEDCOUPLING_ROOT_DIR}/cmake_files") INCLUDE(SalomeMacros) INCLUDE(SalomeSetupPlatform) -FIND_PACKAGE(SalomePython REQUIRED) +FIND_PACKAGE(SalomePythonInterp REQUIRED) +FIND_PACKAGE(SalomePythonLibs REQUIRED) FIND_PACKAGE(SalomeHDF5 REQUIRED) FIND_PACKAGE(SalomeMEDCoupling REQUIRED) FIND_PACKAGE(SalomeMEDFile REQUIRED)