From a5957560fbeedb59c6d6fcdbc9ba77ab5a234488 Mon Sep 17 00:00:00 2001 From: ana Date: Mon, 25 Jul 2016 17:09:07 +0300 Subject: [PATCH] Windows: suppress Cmake warnings --- CMakeLists.txt | 3 +++ src/Plugins/ParaMEDCorba/CMakeLists.txt | 4 ++++ test/standalone/CMakeLists.txt | 3 +++ 3 files changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 48719435..4ac5a4ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,9 @@ ENDIF(WIN32) # 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 # =========== diff --git a/src/Plugins/ParaMEDCorba/CMakeLists.txt b/src/Plugins/ParaMEDCorba/CMakeLists.txt index 1c0280fc..2d61a70f 100644 --- a/src/Plugins/ParaMEDCorba/CMakeLists.txt +++ b/src/Plugins/ParaMEDCorba/CMakeLists.txt @@ -20,6 +20,10 @@ PROJECT( ParaMEDCorba ) CMAKE_MINIMUM_REQUIRED( VERSION 2.8.7 ) + IF(WIN32) + CMAKE_POLICY(SET CMP0020 OLD) # disable automatic linking to qtmain.lib + ENDIF(WIN32) + ## !!! This definition corrupts wrapping process #SET( LIBRARY_OUTPUT_PATH ${ParaMEDCorba_BINARY_DIR}/bin CACHE INTERNAL "Single place for output" ) #SET( EXECUTABLE_OUTPUT_PATH ${ParaMEDCorba_BINARY_DIR}/bin CACHE INTERNAL "Single place for output" ) diff --git a/test/standalone/CMakeLists.txt b/test/standalone/CMakeLists.txt index 5c48d05b..86bf9f6c 100644 --- a/test/standalone/CMakeLists.txt +++ b/test/standalone/CMakeLists.txt @@ -20,6 +20,9 @@ PROJECT(LightPARAVIS) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.10) +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.39.2