From e2f55e4f951cdb366edc26eac388648e138898f8 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 16 Apr 2020 20:33:07 +0300 Subject: [PATCH] Remove CMake warnings: set-up cmake policies globally in SalomeMacros.cmake --- CMakeLists.txt | 9 --------- test/standalone/CMakeLists.txt | 5 +---- 2 files changed, 1 insertion(+), 13 deletions(-) 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) -- 2.30.2