projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ecce4d
)
Move to cmake 2.6. Add policy CMP0003
author
Mathieu Malaterre
<mathieu.malaterre@gmail.com>
Wed, 26 May 2010 09:34:01 +0000
(09:34 +0000)
committer
Mathieu Malaterre
<mathieu.malaterre@gmail.com>
Wed, 26 May 2010 09:34:01 +0000
(09:34 +0000)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index bd78c87bca067b4bee613ae138bacbf046f0e673..73d503fcb209f7ebdb610e56a56d65c0b8f2a617 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-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")