]> granicus.if.org Git - curl/commit
CMake: CMake config files are defining CURL_STATICLIB for static builds
authorAdrien <Adnn@users.noreply.github.com>
Wed, 1 Aug 2018 12:02:26 +0000 (14:02 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 15 Aug 2018 11:45:27 +0000 (13:45 +0200)
commitab66a804883e3d31f7c3e88b7aa446cb71dfd17d
tree786e032a79b7d5a0a45adef3bf08186a9f446649
parent39cb7130c3d302f7447937cb4f23d73f92561d3b
CMake: CMake config files are defining CURL_STATICLIB for static builds

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.

Fixes #2817
Closes #2823
Reported-by: adnn on github
Reviewed-by: Sergei Nikulov
lib/CMakeLists.txt