From: vsr Date: Mon, 8 Jun 2020 09:10:44 +0000 (+0300) Subject: Fix errors when using CMake older than 3.12 X-Git-Tag: V9_5_0rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=872dddf932ebb30654320901fa00c2626f7e2848;p=tools%2Fconfiguration.git Fix errors when using CMake older than 3.12 --- diff --git a/cmake/SalomeMacros.cmake b/cmake/SalomeMacros.cmake index 78ee462..33078a9 100644 --- a/cmake/SalomeMacros.cmake +++ b/cmake/SalomeMacros.cmake @@ -27,7 +27,9 @@ 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 +IF(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12) + CMAKE_POLICY(SET CMP0074 NEW) # Use ROOT variables when detecting packages +ENDIF() #---------------------------------------------------------------------------- # LIST_CONTAINS is a macro useful for determining whether a list has a