mirror of
https://github.com/glfw/glfw.git
synced 2024-11-30 05:47:10 +00:00
Win32: Fix clang-cl interpreting -Wall as /Wall
Unlike -Wall, VS /Wall really means all warnings.
Closes #1780.
(cherry picked from commit ac627706ef
)
This commit is contained in:
parent
e0b3361683
commit
7dee4e05f9
@ -224,6 +224,7 @@ skills.
|
|||||||
- Eloi Marín Gratacós
|
- Eloi Marín Gratacós
|
||||||
- Stefan Gustavson
|
- Stefan Gustavson
|
||||||
- Jonathan Hale
|
- Jonathan Hale
|
||||||
|
- hdf89shfdfs
|
||||||
- Sylvain Hellegouarch
|
- Sylvain Hellegouarch
|
||||||
- Matthew Henry
|
- Matthew Henry
|
||||||
- heromyth
|
- heromyth
|
||||||
|
@ -125,7 +125,12 @@ if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR
|
|||||||
"${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR
|
"${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR
|
||||||
"${CMAKE_C_COMPILER_ID}" STREQUAL "AppleClang")
|
"${CMAKE_C_COMPILER_ID}" STREQUAL "AppleClang")
|
||||||
|
|
||||||
|
if ("${CMAKE_C_SIMULATE_ID}" STREQUAL "MSVC")
|
||||||
|
# Tell Clang-CL that this is a Clang flag
|
||||||
|
target_compile_options(glfw PRIVATE "/clang:-Wall")
|
||||||
|
else()
|
||||||
target_compile_options(glfw PRIVATE "-Wall")
|
target_compile_options(glfw PRIVATE "-Wall")
|
||||||
|
endif()
|
||||||
elseif (MSVC)
|
elseif (MSVC)
|
||||||
target_compile_options(glfw PRIVATE "/W3")
|
target_compile_options(glfw PRIVATE "/W3")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user