]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Patch from Intel
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 31 May 2021 12:39:36 +0000 (14:39 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 31 May 2021 12:39:57 +0000 (14:39 +0200)
CMakeLists.txt

index 0cf9e4e8a5fecf767ed18348a1d8ba5b5caab5aa..ea2c09cea1c19ff859959924f2d802c173e95100 100644 (file)
@@ -22,6 +22,17 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11 FATAL_ERROR)
 PROJECT(MEDCoupling C CXX)
 
 
+IF (${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.3)
+  cmake_policy(SET CMP0057 NEW)
+  IF (${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.13)
+    cmake_policy(SET CMP0078 OLD)
+  ENDIF()
+  IF (${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.14)
+    cmake_policy(SET CMP0086 OLD)
+  ENDIF()
+ENDIF()
+
+
 # Versioning
 # ===========
 # Project name, upper case