From 6bf8703ea3dc208f2bfada5c4bd9aa28a9739489 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 20 Apr 2020 12:54:03 +0300 Subject: [PATCH] Include SalomeMacros.cmake with NO_POLICY_SCOPE to apply policies --- Examples/hxx1/ICOCO/src/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Examples/hxx1/ICOCO/src/CMakeLists.txt b/Examples/hxx1/ICOCO/src/CMakeLists.txt index 2ca0a2f..3892c91 100644 --- a/Examples/hxx1/ICOCO/src/CMakeLists.txt +++ b/Examples/hxx1/ICOCO/src/CMakeLists.txt @@ -5,7 +5,7 @@ PROJECT(MEDExample C CXX) 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") - INCLUDE(SalomeMacros) + INCLUDE(SalomeMacros NO_POLICY_SCOPE) ELSE() MESSAGE(FATAL_ERROR "We absolutely need the Salome CMake configuration files, please define CONFIGURATION_ROOT_DIR !") ENDIF() @@ -14,7 +14,6 @@ ENDIF() # ========================== SET(MEDCOUPLING_ROOT_DIR $ENV{MEDCOUPLING_ROOT_DIR} CACHE PATH "Path to the MEDCoupling tool") IF(EXISTS ${MEDCOUPLING_ROOT_DIR}) - LIST(APPEND CMAKE_MODULE_PATH "${MEDCOUPLING_ROOT_DIR}/cmake_files") FIND_PACKAGE(SalomeMEDCoupling REQUIRED) # will reload HDF5, MEDFile, XDR, etc ... ELSE(EXISTS ${MEDCOUPLING_ROOT_DIR}) MESSAGE(FATAL_ERROR "We absolutely need the MEDCoupling tool, please define MEDCOUPLING_ROOT_DIR !") -- 2.39.2