Salome HOME
Include SalomeMacros.cmake with NO_POLICY_SCOPE to apply policies EMC2P_V_1_3_0 V9_5_0b1
authorvsr <vsr@opencascade.com>
Mon, 20 Apr 2020 09:54:03 +0000 (12:54 +0300)
committervsr <vsr@opencascade.com>
Mon, 20 Apr 2020 09:54:03 +0000 (12:54 +0300)
Examples/hxx1/ICOCO/src/CMakeLists.txt

index 2ca0a2f6929c1b7fb37b8d8123eded09d01b65e3..3892c91dacfa28d1bd74ece3d339d4d31c6f23f6 100644 (file)
@@ -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 !")