From: vsr Date: Thu, 16 Apr 2020 17:33:07 +0000 (+0300) Subject: Remove CMake warnings: set-up cmake policies globally in SalomeMacros.cmake X-Git-Tag: V9_5_0b1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e2f55e4f951cdb366edc26eac388648e138898f8;p=modules%2Fparavis.git Remove CMake warnings: set-up cmake policies globally in SalomeMacros.cmake --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 89707e4f..005c4d5f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,15 +25,6 @@ IF(WIN32) SET( CMAKE_SHARED_LINKER_FLAGS_DEBUG "${replacementFlags}" ) ENDIF(WIN32) -# For correct Qt 5 detection procedure -CMAKE_POLICY(SET CMP0053 NEW) - -# 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/test/standalone/CMakeLists.txt b/test/standalone/CMakeLists.txt index e7b5d8f5..e4db36d4 100644 --- a/test/standalone/CMakeLists.txt +++ b/test/standalone/CMakeLists.txt @@ -20,10 +20,7 @@ PROJECT(LightPARAVIS) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.10) -CMAKE_POLICY(SET CMP0053 NEW) # for correct Qt 5 detection procedure -IF(WIN32) - CMAKE_POLICY(SET CMP0020 OLD) # disable automatic linking to qtmain.lib -ENDIF(WIN32) + SET(CMAKE_BUILD_TYPE "Debug") OPTION(LIGHTPARAVIS_WITH_GUI "Build GUI test app" ON)