]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
integration of a patch from Renaud Barate which fixes some CMake issues
authorrnc <rnc@opencascade.com>
Tue, 12 Mar 2013 10:16:01 +0000 (10:16 +0000)
committerrnc <rnc@opencascade.com>
Tue, 12 Mar 2013 10:16:01 +0000 (10:16 +0000)
CMakeLists.txt

index 93b73452e6c4fb508329f71c6de8283ba1aef0f7..9482ac133ac94f03777de08f9be43683a9fc7129 100644 (file)
@@ -36,9 +36,11 @@ IF(KERNEL_ROOT_DIR)
   FILE(TO_CMAKE_PATH $ENV{KERNEL_ROOT_DIR} KERNEL_ROOT_DIR)
   SET(MED_ENABLE_KERNEL ON)
   
+  # directories for packages detection
   SET(SALOME_MACROS_DIR ${KERNEL_ROOT_DIR}/salome_adm/cmake_files)
-  
-  INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/deprecated/FindPLATFORM.cmake)
+  SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${SALOME_MACROS_DIR})
+
+  find_package(PLATFORM)
   INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/deprecated/FindPYTHON.cmake)
   if(SALOME_USE_MPI)
     INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/deprecated/FindMPI.cmake)