Salome HOME
Documentation, style and code performance update
[modules/adao.git] / CMakeLists.txt
index 0b8ab5f6e18c88e503a621b3a5f41167b0c26396..d8956b49c0128f4fc0b431a123e5eefb470cab8a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2008-2020 EDF R&D
+# Copyright (C) 2008-2023 EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -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()