mirror of
https://github.com/curl/curl.git
synced 2026-08-25 04:53:31 +03:00
cmake: add comments to feature check options applied globally
Add comments saying when we want values set in feature check option variables to apply to all feature checks, globally. These are currently: `ws2_32` and `socket` libraries, and `-D_WIN32_WINNT=` macro. Also use `list(APPEND ...)` for the libraries to avoid overwriting potentially existing values. Cherry-picked from #15157 Closes #15253
This commit is contained in:
parent
447bcea5a4
commit
6074e33509
2 changed files with 5 additions and 5 deletions
|
|
@ -31,7 +31,7 @@ macro(check_include_file_concat _file _variable)
|
|||
check_include_files("${CURL_INCLUDES};${_file}" ${_variable})
|
||||
if(${_variable})
|
||||
set(CURL_INCLUDES ${CURL_INCLUDES} ${_file})
|
||||
set(CURL_TEST_DEFINES "${CURL_TEST_DEFINES} -D${_variable}")
|
||||
set(CURL_TEST_DEFINES "${CURL_TEST_DEFINES} -D${_variable}") # Apply to curl_internal_test()
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue