Salome HOME
Windows: suppress Cmake warnings
authorana <ana@opencascade.com>
Mon, 25 Jul 2016 14:09:07 +0000 (17:09 +0300)
committerana <ana@opencascade.com>
Mon, 25 Jul 2016 14:09:07 +0000 (17:09 +0300)
CMakeLists.txt
src/Plugins/ParaMEDCorba/CMakeLists.txt
test/standalone/CMakeLists.txt

index 4871943580e28d87a3157ad2f0265707c58792a3..4ac5a4ed8310d3f47e557ed1362c35b80f7d8a3a 100644 (file)
@@ -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
 # ===========
index 1c0280fc9ab810d253d3c5bf4602718a34c2b9f3..2d61a70fdc8cd85f320a2f75d8b8f3a0c7dce84e 100644 (file)
 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" )
index 5c48d05b58961582a0e31cb4ee39f8ca2fe711a9..86bf9f6c9d60e937ffee2bdb370ed1c6e0b82098 100644 (file)
@@ -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)