Salome HOME
Include SalomeMacros.cmake with NO_POLICY_SCOPE to apply policies V9_5_0b1
authorvsr <vsr@opencascade.com>
Fri, 17 Apr 2020 18:11:24 +0000 (21:11 +0300)
committervsr <vsr@opencascade.com>
Fri, 17 Apr 2020 18:11:24 +0000 (21:11 +0300)
CMakeLists.txt

index c9f26c5254af6943123efd19cdb0f114bca5829c..563a61aa37060a7b4cba57762f3c977bf894b2c4 100644 (file)
@@ -38,13 +38,12 @@ SET(${PROJECT_NAME_UC}_VERSION_DEV 1)
 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()
 
 INCLUDE(SalomeSetupPlatform)
-INCLUDE(SalomeMacros)
 
 # Find prerequisites needed to documentation generation
 # ==================================================