From b44e07fe198a8db2018d079b7a8675cce5d8fc81 Mon Sep 17 00:00:00 2001 From: Antonin Descampe Date: Wed, 16 Sep 2015 13:14:00 +0200 Subject: [PATCH] removed warnings when configuring with CMake 3.x on MacOS (update issue 443 for 1.5 branch) --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 92e0096f..a008cb43 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,9 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) IF(COMMAND CMAKE_POLICY) CMAKE_POLICY(SET CMP0003 NEW) + if (NOT (${CMAKE_VERSION} VERSION_LESS 3.0)) + cmake_policy(SET CMP0042 NEW) + endif() ENDIF(COMMAND CMAKE_POLICY) IF(NOT OPENJPEG_NAMESPACE)