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
532472780b
commit
acb4871710
@ -134,6 +134,12 @@ if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR
|
||||
"${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR
|
||||
"${CMAKE_C_COMPILER_ID}" STREQUAL "AppleClang")
|
||||
target_compile_options(glfw PRIVATE "-Wall")
|
||||
if(CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||
# Tell Clang-CL that this is a Clang flag
|
||||
target_compile_options(glfw PRIVATE "/clang:-Wall")
|
||||
else()
|
||||
target_compile_options(glfw PRIVATE "-Wall")
|
||||
endif()
|
||||
elseif (MSVC)
|
||||
target_compile_options(glfw PRIVATE "/W3")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user