Skip to content
Snippets Groups Projects
Commit 016751ce authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

COMP: check policy before setting it

parent d613197e
Branches
Tags
No related merge requests found
......@@ -14,7 +14,9 @@ foreach(p
endforeach()
# CMP0046 : from CMake 3.0, old behaviour is more convenient
cmake_policy(SET CMP0046 OLD)
if(POLICY CMP0046)
cmake_policy(SET CMP0046 OLD)
endif()
project(OTB)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment