From: vsr Date: Thu, 16 Apr 2020 16:47:26 +0000 (+0300) Subject: Remove CMake warnings: set-up cmake policies globally X-Git-Tag: V9_5_0b1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4aa75fa5cc770a1a26b11e4712224d7c7bed1b5e;p=tools%2Fconfiguration.git Remove CMake warnings: set-up cmake policies globally --- diff --git a/cmake/SalomeMacros.cmake b/cmake/SalomeMacros.cmake index d0ba885..ad57253 100644 --- a/cmake/SalomeMacros.cmake +++ b/cmake/SalomeMacros.cmake @@ -19,6 +19,16 @@ # Author: A.Geay, V. Sandler, A. Bruneton # +#---------------------------------------------------------------------------- +# Set-up global policies +#---------------------------------------------------------------------------- +CMAKE_POLICY(SET CMP0003 NEW) # Ensure proper linker behavior +IF(WIN32) + CMAKE_POLICY(SET CMP0020 OLD) # Disable automatic linking to qtmain.lib +ENDIF(WIN32) +CMAKE_POLICY(SET CMP0053 NEW) # For correct Qt 5 detection procedure +CMAKE_POLICY(SET CMP0074 NEW) # Use ROOT variables when detecting packages + #---------------------------------------------------------------------------- # LIST_CONTAINS is a macro useful for determining whether a list has a # particular entry