From 7a4bbbe3102d31008fbffb039318c1c4c752c0b0 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 29 May 2017 14:43:00 +0200 Subject: [PATCH] Patch from Mathieu (KW). I do not understand why. --- src/Plugins/MEDReader/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- 2.39.2