Cmake build: Disable possible warn about not known policy

This commit is contained in:
Kornel Benko 2018-06-10 11:40:12 +02:00
parent 72a2f92239
commit 6343452a73

View File

@ -48,7 +48,9 @@ if(COMMAND cmake_policy)
cmake_policy(SET CMP0043 NEW) cmake_policy(SET CMP0043 NEW)
endif() endif()
cmake_policy(SET CMP0020 NEW) cmake_policy(SET CMP0020 NEW)
cmake_policy(SET CMP0075 OLD) if(POLICY CMP0075)
cmake_policy(SET CMP0075 OLD)
endif()
endif() endif()
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true) set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)