From 6343452a7397a5ac4b84af30d61c4d7fca5afbc1 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sun, 10 Jun 2018 11:40:12 +0200 Subject: [PATCH] Cmake build: Disable possible warn about not known policy --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 410f0af683..d1b448ca3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,9 @@ if(COMMAND cmake_policy) cmake_policy(SET CMP0043 NEW) endif() cmake_policy(SET CMP0020 NEW) - cmake_policy(SET CMP0075 OLD) + if(POLICY CMP0075) + cmake_policy(SET CMP0075 OLD) + endif() endif() set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)