Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Generated CMake config files do not define `CURL_STATIC` for static builds #2817
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
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.