mirror of
https://github.com/curl/curl.git
synced 2026-07-24 16:07:16 +03:00
cmake: exclude -MP for clang-cl again
To avoid this warning/error (seen with Ninja generator):
```
clang-cl: warning: argument unused during compilation: '-MP' [-Wunused-command-line-argument]
```
Curious why CI missed it. Maybe due to using a Visual Studio generator.
Regression from e0fd5790d9 #16004
Closes #16550
This commit is contained in:
parent
61407464bf
commit
3834f31b22
1 changed files with 1 additions and 1 deletions
|
|
@ -1986,7 +1986,7 @@ if(WIN32)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "MSVC") # MSVC but exclude clang-cl
|
||||
string(APPEND CMAKE_C_FLAGS " -MP") # Parallel compilation
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue