Cmake mingw build: Get rid of a cmake warning regarding policy CMP0020

For explanation see the output of 'cmake --help-policy CMP0020'
This commit is contained in:
Kornel Benko 2018-05-14 17:29:45 +02:00
parent 255a5cf401
commit 933502f991

View File

@ -47,6 +47,7 @@ if(COMMAND cmake_policy)
# COMPILE_DEFINITIONS are not used yet. Enable new behavior.
cmake_policy(SET CMP0043 NEW)
endif()
cmake_policy(SET CMP0020 NEW)
endif()
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)