From 13d0e0a152f08ee60ceadde15886cbadd10837e8 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sat, 26 Dec 2020 15:56:56 +0100 Subject: [PATCH] Fix linking with libcurl under MSW when using CMake Enable CMP0060 policy to use full path for the library. --- build/cmake/policies.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/cmake/policies.cmake b/build/cmake/policies.cmake index 8935c59ea2..e72c02f2f4 100644 --- a/build/cmake/policies.cmake +++ b/build/cmake/policies.cmake @@ -59,6 +59,11 @@ if(POLICY CMP0054) cmake_policy(SET CMP0054 NEW) endif() +if(POLICY CMP0060) + # Link libraries by full path even in implicit directories. + cmake_policy(SET CMP0060 NEW) +endif() + if(POLICY CMP0067) # Honor language standard in try_compile() source-file signature. cmake_policy(SET CMP0067 NEW)