From: Anthony Geay Date: Mon, 31 May 2021 12:39:36 +0000 (+0200) Subject: Patch from Intel X-Git-Tag: V9_8_0a1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2bad06ef5c50c100514b96c862ac3f840e6cbcff;p=tools%2Fmedcoupling.git Patch from Intel --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cf9e4e8a..ea2c09cea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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