From 925e590917e92a0fe60ac463aca52f76b3ee0984 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 3 Nov 2020 12:34:34 +0300 Subject: [PATCH] Enable CMake policy CMP0060 by default. GitOrigin-RevId: 9d2073bbf54af70c44614153f05eed3d324c0fe6 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 73c68f048..ed6e4d5fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,10 @@ if (POLICY CMP0054) # do not expand quoted arguments cmake_policy(SET CMP0054 NEW) endif() +if (POLICY CMP0060) + # link libraries by full path + cmake_policy(SET CMP0060 NEW) +endif() include(PreventInSourceBuild) prevent_in_source_build()