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:
Viktor Szakats 2024-10-24 00:48:34 +02:00
parent 7e94680c9a
commit c9b54fadd7
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@
macro(check_include_file_concat _file _variable)
check_include_files("${CURL_INCLUDES};${_file}" ${_variable})
if(${_variable})
set(CURL_INCLUDES ${CURL_INCLUDES} ${_file})
list(APPEND CURL_INCLUDES ${_file})
endif()
endmacro()

View File

@ -1414,8 +1414,8 @@ endif()
# Check for header files
if(WIN32)
set(CURL_INCLUDES ${CURL_INCLUDES} "winsock2.h")
set(CURL_INCLUDES ${CURL_INCLUDES} "ws2tcpip.h")
list(APPEND CURL_INCLUDES "winsock2.h")
list(APPEND CURL_INCLUDES "ws2tcpip.h")
if(HAVE_WIN32_WINNT)
if(HAVE_WIN32_WINNT LESS 0x0501)