removed warnings when configuring with CMake 3.x on MacOS (update issue 443 for 1.5 branch)

This commit is contained in:
Antonin Descampe 2015-09-16 13:14:00 +02:00
parent d3c0915992
commit b44e07fe19
1 changed files with 3 additions and 0 deletions

View File

@ -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)