]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Include SalomeMacros.cmake with NO_POLICY_SCOPE to apply policies
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Thu, 23 Apr 2020 12:04:57 +0000 (14:04 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Thu, 23 Apr 2020 12:04:57 +0000 (14:04 +0200)
CMakeLists.txt

index 0b8ab5f6e18c88e503a621b3a5f41167b0c26396..ef525d2ef5ff3774c4bb0fd3eea6173269ac2ff4 100644 (file)
@@ -20,9 +20,6 @@
 
 cmake_minimum_required(VERSION 2.6)
 
-# Ensure a proper linker behavior:
-CMAKE_POLICY(SET CMP0003 NEW)
-
 project(ADAO)
 
 include(CMakeDependentOption)
@@ -49,7 +46,7 @@ set(ADAO_TEST "share/test/adao")
 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()