mirror of
https://github.com/curl/curl.git
synced 2026-07-28 19:03:06 +03:00
cmake: define BUILDING_LIBCURL in lib/CMakeLists, not config.h
Since the config file might also get included by the tool code at times. This syncs with how other builds do it. Closes #9498
This commit is contained in:
parent
b54920f7e4
commit
889c132c38
2 changed files with 1 additions and 3 deletions
|
|
@ -23,6 +23,7 @@
|
|||
###########################################################################
|
||||
set(LIB_NAME libcurl)
|
||||
set(LIBCURL_OUTPUT_NAME libcurl CACHE STRING "Basename of the curl library")
|
||||
add_definitions(-DBUILDING_LIBCURL)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
set(CURL_STATICLIB NO)
|
||||
|
|
|
|||
|
|
@ -23,9 +23,6 @@
|
|||
***************************************************************************/
|
||||
/* lib/curl_config.h.in. Generated somehow by cmake. */
|
||||
|
||||
/* when building libcurl itself */
|
||||
#cmakedefine BUILDING_LIBCURL 1
|
||||
|
||||
/* Location of default ca bundle */
|
||||
#cmakedefine CURL_CA_BUNDLE "${CURL_CA_BUNDLE}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue