]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Remove CMake warnings: set-up cmake policies globally in SalomeMacros.cmake
authorvsr <vsr@opencascade.com>
Thu, 16 Apr 2020 17:17:33 +0000 (20:17 +0300)
committervsr <vsr@opencascade.com>
Thu, 16 Apr 2020 17:17:33 +0000 (20:17 +0300)
CMakeLists.txt
tools/CurvePlot/CMakeLists.txt
tools/RemoteFileBrowser/CMakeLists.txt

index dd8f9d8e5b80a4ae6a0b6c205d8462935209192f..ed57a19275884a80aafcf91668cb6e06f1eb1edc 100644 (file)
@@ -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
index 0aa13190f743139ae6403f186c1b5462d5225d08..2921c3a00e1878dd3c5858bb0673fd395915ee94 100644 (file)
@@ -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
index 6205d548feb4dad185398b0dcafd23debe16bbda..005efe376b2f1c631430d8aa3f1529359987a5e4 100644 (file)
@@ -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")