mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
cmake: prefer dash-style MSVC options
They play better with Unixy shells. The compiler has been supporting dash options since its early versions. Also fix to detect warnings options passed in dash-style. Closes #16063
This commit is contained in:
parent
cd9107e012
commit
8dfd271c35
3 changed files with 12 additions and 12 deletions
|
|
@ -249,7 +249,7 @@ if(CMAKE_C_COMPILER_ID STREQUAL "Clang" AND MSVC)
|
|||
if(_ccopt MATCHES "^-W" AND NOT _ccopt STREQUAL "-Wall")
|
||||
list(APPEND _picky_tmp ${_ccopt})
|
||||
else()
|
||||
list(APPEND _picky_tmp "/clang:${_ccopt}")
|
||||
list(APPEND _picky_tmp "-clang:${_ccopt}")
|
||||
endif()
|
||||
endforeach()
|
||||
set(_picky ${_picky_tmp})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue