It does the same as the `set()` used before this patch.
Makes the code easier to read.
Closes #15399
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()
# 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)