mirror of
https://github.com/glfw/glfw.git
synced 2025-06-15 20:22:15 +00:00
Update CMakeLists.txt
This commit is contained in:
parent
0b9e48fa3d
commit
532472780b
@ -133,13 +133,7 @@ endif()
|
||||
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR
|
||||
"${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR
|
||||
"${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")
|
||||
endif()
|
||||
target_compile_options(glfw PRIVATE "-Wall")
|
||||
elseif (MSVC)
|
||||
target_compile_options(glfw PRIVATE "/W3")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user