You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building Curl 7.61.0 using the CMake files, and I see it is now generating config files (CMake/curl-config.cmake) when installed. Big thanks for adding this feature to your CMake code !
Up to now, we where using a custom FindCurl.cmake module, that was detecting when the library was statically compiled, and when it was the case, was defining CURL_STATICLIB as an INTERFACE_COMPILE_DEFINITIONS of the imported curl target, with this code:
Looking through the config files generated during install, this symbol is never defined on the imported static target, thus this target make downstream build fail at link time.
The text was updated successfully, but these errors were encountered:
This change allows to use the CMake config files generated by Curl's
CMake scripts for static builds of the library.
The symbol CURL_STATIC lib must be defined to compile downstream,
thus the config package is the perfect place to do so.
Fixescurl#2817
Reported-by: adnn
This change allows to use the CMake config files generated by Curl's
CMake scripts for static builds of the library.
The symbol CURL_STATIC lib must be defined to compile downstream,
thus the config package is the perfect place to do so.
Fixescurl#2817Closescurl#2823
Reported-by: adnn on github
Reviewed-by: Sergei Nikulov
This change allows to use the CMake config files generated by Curl's
CMake scripts for static builds of the library.
The symbol CURL_STATIC lib must be defined to compile downstream,
thus the config package is the perfect place to do so.
Fixescurl#2817Closescurl#2823
Reported-by: adnn on github
Reviewed-by: Sergei Nikulov
lockbot
locked as resolved and limited conversation to collaborators
Nov 13, 2018
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am building Curl 7.61.0 using the CMake files, and I see it is now generating config files (CMake/curl-config.cmake) when installed. Big thanks for adding this feature to your CMake code !
Up to now, we where using a custom FindCurl.cmake module, that was detecting when the library was statically compiled, and when it was the case, was defining
CURL_STATICLIB
as anINTERFACE_COMPILE_DEFINITIONS
of the imported curl target, with this code:Looking through the config files generated during install, this symbol is never defined on the imported static target, thus this target make downstream build fail at link time.
The text was updated successfully, but these errors were encountered: