X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=cmake%2FSalomeMacros.cmake;h=33078a936556b0642ecf2a84f7b8f3a3d9ddb42b;hb=ca02984dfd2ece229ecb5d2b9ebe9184b4c6ee40;hp=78ee4627df43a9b65f2ecd5536b606ccc8cc0df5;hpb=7e8d4949b430b5451e6ec4d834c9422b1ffc7e1e;p=tools%2Fconfiguration.git 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