mirror of
https://github.com/glfw/glfw.git
synced 2025-10-02 21:00:57 +00:00
Update CMakeLists.txt
This commit is contained in:
parent
acb4871710
commit
0b7c7eed6a
@ -136,6 +136,7 @@ if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR
|
|||||||
target_compile_options(glfw PRIVATE "-Wall")
|
target_compile_options(glfw PRIVATE "-Wall")
|
||||||
if(CMAKE_GENERATOR MATCHES "Visual Studio")
|
if(CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||||
# Tell Clang-CL that this is a Clang flag
|
# Tell Clang-CL that this is a Clang flag
|
||||||
|
# Clang won't recognize forward slash flags with any other generator
|
||||||
target_compile_options(glfw PRIVATE "/clang:-Wall")
|
target_compile_options(glfw PRIVATE "/clang:-Wall")
|
||||||
else()
|
else()
|
||||||
target_compile_options(glfw PRIVATE "-Wall")
|
target_compile_options(glfw PRIVATE "-Wall")
|
||||||
|
Loading…
Reference in New Issue
Block a user