I am using curl with add_subdirectory in cmake. I have custom zlib (zlib-ng actually), and I provide target ZLIB::ZLIB as an interface library, which has dependency on another target. The target ZLIB::ZLIB does not have (and cannot have) the property LOCATION.
-- Enabled features: SSL IPv6 libz AsynchDNS SSPI SPNEGO Kerberos NTLM
-- Enabled protocols: HTTP HTTPS
-- Enabled SSL backends: WinSSL
CMake Error at externals/curl/curl/CMakeLists.txt:1416 (get_target_property):
INTERFACE_LIBRARY targets may only have whitelisted properties. The
property "LOCATION" is not allowed.
CMake Warning at externals/curl/curl/CMakeLists.txt:1418 (message):
Bad lib in library list: ZLIB::ZLIB
The code does not seem to have any effect and commenting it worked for me.
The code was added via a158a09 to avoid adding stuff like OpenSSL::SSL to the generated pkg-config (.pc) file. For a configuration such as yours, I guess it is better to omit the library from the .pc file and assume the integrator adds the appropriate linking commands.
I am using curl with add_subdirectory in cmake. I have custom zlib (zlib-ng actually), and I provide target ZLIB::ZLIB as an interface library, which has dependency on another target. The target ZLIB::ZLIB does not have (and cannot have) the property LOCATION.
Unfortunately, recent changes to curl cmake:
curl/CMakeLists.txt
Line 1416 in a158a09
generates this error in my setup:
The code does not seem to have any effect and commenting it worked for me.
curl/libcurl version
commit 2bf7d1b
operating system
Windows 10
cmake version 3.17.3
(msvc 16.6.1)
The text was updated successfully, but these errors were encountered: