summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMatthieu Darbois <mayeut@users.noreply.github.com>2014-11-25 23:57:37 +0000
committerMatthieu Darbois <mayeut@users.noreply.github.com>2014-11-25 23:57:37 +0000
commit46afb746f0fabc6059e483d5ee8e00c5c24b8df7 (patch)
treecfaf3be02139c19cd87f49dbc210dcea91357761 /CMakeLists.txt
parent570dd13f5556e0512fb76bed99d33e0e8e26c9bd (diff)
[trunk] removed warnings when configuring with CMake 3.x on MacOS (fixes issue 443)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
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)