From: vsr Date: Thu, 16 Apr 2020 17:17:33 +0000 (+0300) Subject: Remove CMake warnings: set-up cmake policies globally in SalomeMacros.cmake X-Git-Tag: V9_5_0b1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6113eaf503247d340d9c5455e3b6a0d6c58b2431;p=modules%2Fgui.git Remove CMake warnings: set-up cmake policies globally in SalomeMacros.cmake --- 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")