From 6113eaf503247d340d9c5455e3b6a0d6c58b2431 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 16 Apr 2020 20:17:33 +0300 Subject: [PATCH] Remove CMake warnings: set-up cmake policies globally in SalomeMacros.cmake --- CMakeLists.txt | 6 ------ tools/CurvePlot/CMakeLists.txt | 3 --- tools/RemoteFileBrowser/CMakeLists.txt | 2 -- 3 files changed, 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dd8f9d8e5..ed57a1927 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,12 +21,6 @@ INCLUDE(CMakeDependentOption) PROJECT(SalomeGUI C CXX) -# Ensure a proper linker behavior: -CMAKE_POLICY(SET CMP0003 NEW) -IF(WIN32) - CMAKE_POLICY(SET CMP0020 OLD) # disable automatic linking to qtmain.lib -ENDIF(WIN32) - # Versioning # =========== # Project name, upper case diff --git a/tools/CurvePlot/CMakeLists.txt b/tools/CurvePlot/CMakeLists.txt index 0aa13190f..2921c3a00 100644 --- a/tools/CurvePlot/CMakeLists.txt +++ b/tools/CurvePlot/CMakeLists.txt @@ -21,9 +21,6 @@ INCLUDE(CMakeDependentOption) PROJECT(SalomeCURVEPLOT C CXX) -# Ensure a proper linker behavior: -CMAKE_POLICY(SET CMP0003 NEW) - # Versioning # =========== # Project name, upper case diff --git a/tools/RemoteFileBrowser/CMakeLists.txt b/tools/RemoteFileBrowser/CMakeLists.txt index 6205d548f..005efe376 100644 --- a/tools/RemoteFileBrowser/CMakeLists.txt +++ b/tools/RemoteFileBrowser/CMakeLists.txt @@ -21,8 +21,6 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8 FATAL_ERROR) PROJECT(RemoteFileBrowser CXX) -CMAKE_POLICY(SET CMP0003 NEW) - SET(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake files") IF(EXISTS ${CONFIGURATION_ROOT_DIR}) LIST(APPEND CMAKE_MODULE_PATH "${CONFIGURATION_ROOT_DIR}/cmake") -- 2.39.2