From: vsr Date: Mon, 20 Apr 2020 09:54:03 +0000 (+0300) Subject: Include SalomeMacros.cmake with NO_POLICY_SCOPE to apply policies X-Git-Tag: EMC2P_V_1_3_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bcb643a2d626a1000ad1b344535b08785cbd5c7d;p=tools%2Fyacsgen.git Include SalomeMacros.cmake with NO_POLICY_SCOPE to apply policies --- 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 !")