Add policy definitions to avoid warnings from cmake 3.0.0

This commit is contained in:
Stephan Witt 2014-08-21 18:03:37 +02:00
parent 6407d45a69
commit 7b31da6793

View File

@ -40,6 +40,13 @@ if(COMMAND cmake_policy)
cmake_policy(SET CMP0005 OLD)
# Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION
cmake_policy(SET CMP0006 NEW)
if(POLICY CMP0028)
cmake_policy(SET CMP0028 OLD)
endif()
if(POLICY CMP0043)
# COMPILE_DEFINITIONS are not used yet. Enable new behavior.
cmake_policy(SET CMP0043 NEW)
endif()
endif()
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)