From: Matthieu Darbois Date: Tue, 25 Nov 2014 23:57:37 +0000 (+0000) Subject: [trunk] removed warnings when configuring with CMake 3.x on MacOS (fixes issue 443) X-Git-Tag: v2.1.1~22^2~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46afb746f0fabc6059e483d5ee8e00c5c24b8df7;p=openjpeg [trunk] removed warnings when configuring with CMake 3.x on MacOS (fixes issue 443) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7859b6dc..79f66c35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,9 @@ cmake_minimum_required(VERSION 2.8.2) if(COMMAND CMAKE_POLICY) cmake_policy(SET CMP0003 NEW) + if (NOT (${CMAKE_VERSION} VERSION_LESS 3.0)) + cmake_policy(SET CMP0042 NEW) + endif() endif() if(NOT OPENJPEG_NAMESPACE)