From: Anthony Geay Date: Mon, 29 May 2017 12:43:00 +0000 (+0200) Subject: Patch from Mathieu (KW). I do not understand why. X-Git-Tag: Before_multi_study_removal_06072017~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7a4bbbe3102d31008fbffb039318c1c4c752c0b0;p=modules%2Fparavis.git Patch from Mathieu (KW). I do not understand why. --- diff --git a/src/Plugins/MEDReader/CMakeLists.txt b/src/Plugins/MEDReader/CMakeLists.txt index a1353d16..dc5e54b8 100644 --- a/src/Plugins/MEDReader/CMakeLists.txt +++ b/src/Plugins/MEDReader/CMakeLists.txt @@ -51,6 +51,8 @@ ENDIF(WIN32) # Common CMake macros # =================== +SET(TMP_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}) +unset(CMAKE_MODULE_PATH) SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files") IF(EXISTS ${CONFIGURATION_ROOT_DIR}) LIST(APPEND CMAKE_MODULE_PATH "${CONFIGURATION_ROOT_DIR}/cmake") @@ -63,7 +65,11 @@ SET(MEDCOUPLING_ROOT_DIR $ENV{MEDCOUPLING_ROOT_DIR} CACHE PATH "Path to the MEDC IF(EXISTS ${MEDCOUPLING_ROOT_DIR}) LIST(APPEND CMAKE_MODULE_PATH "${MEDCOUPLING_ROOT_DIR}/cmake_files") ENDIF() - +LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_ROOT}/Modules") +LIST(APPEND CMAKE_MODULE_PATH ${TMP_CMAKE_MODULE_PATH}) + + + # Platform setup # ============== INCLUDE(SalomeSetupPlatform)