From: rnc Date: Tue, 12 Mar 2013 10:16:01 +0000 (+0000) Subject: integration of a patch from Renaud Barate which fixes some CMake issues X-Git-Tag: V7_3_1b1~464 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a15e99ef48fe5bc0548d0065a0ce039ea928de7b;p=tools%2Fmedcoupling.git integration of a patch from Renaud Barate which fixes some CMake issues --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 93b73452e..9482ac133 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)