Commit d3a1ecbd authored by Manuel Grizonnet's avatar Manuel Grizonnet

ENH: improve support with cmake 3.1

parent d8c31c62
......@@ -6,7 +6,7 @@ endif()
foreach(p
CMP0025 # CMake 3.0
CMP0042 # CMake 3.0
CMP0042 # CMake 3.0
)
if(POLICY ${p})
cmake_policy(SET ${p} NEW)
......@@ -18,6 +18,12 @@ if(POLICY CMP0046)
cmake_policy(SET CMP0046 OLD)
endif()
# TODO Check if OTB cmake is compatible with CMP0054 NEW policy
# CMP0054 : New policy introduce in CMake 3.1, keep old behaviour for now
if(POLICY CMP0054)
cmake_policy(SET CMP0054 OLD)
endif()
project(OTB)
include(CMakeDependentOption)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment