From: Andrey Kamaev Date: Tue, 18 Nov 2014 12:39:59 +0000 (+0300) Subject: silence cmake 3.0+ warnings on LOCATION attribute X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~2825^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=174409843874546f4a825ffa496ed748c9bcf8d4;p=platform%2Fupstream%2Fopencv.git silence cmake 3.0+ warnings on LOCATION attribute --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e61b65..efe56c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,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)