mirror of
https://github.com/curl/curl.git
synced 2026-05-30 07:07:30 +03:00
cmake: honor CMAKE_C_FLAGS in test 1119 and 1167
`CMAKE_C_FLAGS` is not set by curl, but may contain custom options required for a successful compiler run, when invoked by these tests. One such case is when configuring Visual Studio or clang-cl via compiler options, instead of envs. Cherry-picked from #18301 Closes #18307
This commit is contained in:
parent
294ebba565
commit
a19bd43210
1 changed files with 1 additions and 0 deletions
|
|
@ -104,6 +104,7 @@ if(MSVC OR CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID MATCHES "Cl
|
|||
if(APPLE AND CMAKE_OSX_SYSROOT)
|
||||
string(APPEND CURL_CPP " -isysroot ${CMAKE_OSX_SYSROOT}")
|
||||
endif()
|
||||
string(APPEND CURL_CPP " ${CMAKE_C_FLAGS}")
|
||||
# Add header directories, like autotools builds do.
|
||||
get_property(_include_dirs TARGET ${LIB_SELECTED} PROPERTY INCLUDE_DIRECTORIES)
|
||||
foreach(_include_dir IN LISTS _include_dirs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue