From 4aa75fa5cc770a1a26b11e4712224d7c7bed1b5e Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 16 Apr 2020 19:47:26 +0300 Subject: [PATCH] Remove CMake warnings: set-up cmake policies globally --- cmake/SalomeMacros.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.39.2