Fix linking with libcurl under MSW when using CMake

Enable CMP0060 policy to use full path for the library.
This commit is contained in:
Maarten Bent
2020-12-26 15:56:56 +01:00
committed by Vadim Zeitlin
parent 1f504d3c5c
commit 13d0e0a152

View File

@@ -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)