From 8e41fd1aab9246da17d1ba48cd30196058f15162 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 1 Sep 2021 19:09:50 +0300 Subject: [PATCH] Enable CMP0074 policy to suppress CMake warning. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d0fd8b0b..b83ba3795 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,10 @@ if (POLICY CMP0060) # link libraries by full path cmake_policy(SET CMP0060 NEW) endif() +if (POLICY CMP0074) + # use environment variables to find libraries + cmake_policy(SET CMP0074 NEW) +endif() include(PreventInSourceBuild) prevent_in_source_build()