From 5dde172452824b51e9cc8ad4e4e7fca13b637ce1 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Sat, 11 Oct 2014 20:35:48 +0400 Subject: [PATCH] silence cmake 3.0+ warnings on LOCATION attribute --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d7d78a14d..771938ff18 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,6 +47,11 @@ if(POLICY CMP0022) cmake_policy(SET CMP0022 OLD) endif() +if(POLICY CMP0026) + # silence cmake 3.0+ warnings about reading LOCATION attribute + cmake_policy(SET CMP0026 OLD) +endif() + # must go before the project command set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Configs" FORCE) if(DEFINED CMAKE_BUILD_TYPE AND CMAKE_VERSION VERSION_GREATER "2.8")