Move to cmake 2.6. Add policy CMP0003

This commit is contained in:
Mathieu Malaterre 2010-05-26 09:34:01 +00:00
parent 8ecce4df3d
commit a02c683572
1 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,11 @@
# For this purpose you can define a CMake var: OPENJPEG_NAMESPACE to whatever you like
# e.g.:
# SET(OPENJPEG_NAMESPACE "GDCMOPENJPEG")
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
IF(NOT OPENJPEG_NAMESPACE)
SET(OPENJPEG_NAMESPACE "OPENJPEG")