From 2bad06ef5c50c100514b96c862ac3f840e6cbcff Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 31 May 2021 14:39:36 +0200 Subject: [PATCH] Patch from Intel --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.39.2