mirror of
https://github.com/curl/curl.git
synced 2025-09-11 22:52:42 +03:00
cmake: use list(APPEND)
on CURL_INCLUDES
It does the same as the `set()` used before this patch. Makes the code easier to read. Closes #15399
This commit is contained in:
parent
7e94680c9a
commit
c9b54fadd7
|
@ -30,7 +30,7 @@
|
||||||
macro(check_include_file_concat _file _variable)
|
macro(check_include_file_concat _file _variable)
|
||||||
check_include_files("${CURL_INCLUDES};${_file}" ${_variable})
|
check_include_files("${CURL_INCLUDES};${_file}" ${_variable})
|
||||||
if(${_variable})
|
if(${_variable})
|
||||||
set(CURL_INCLUDES ${CURL_INCLUDES} ${_file})
|
list(APPEND CURL_INCLUDES ${_file})
|
||||||
endif()
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
|
|
|
@ -1414,8 +1414,8 @@ endif()
|
||||||
|
|
||||||
# Check for header files
|
# Check for header files
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(CURL_INCLUDES ${CURL_INCLUDES} "winsock2.h")
|
list(APPEND CURL_INCLUDES "winsock2.h")
|
||||||
set(CURL_INCLUDES ${CURL_INCLUDES} "ws2tcpip.h")
|
list(APPEND CURL_INCLUDES "ws2tcpip.h")
|
||||||
|
|
||||||
if(HAVE_WIN32_WINNT)
|
if(HAVE_WIN32_WINNT)
|
||||||
if(HAVE_WIN32_WINNT LESS 0x0501)
|
if(HAVE_WIN32_WINNT LESS 0x0501)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user