Update CMakeLists.txt

This commit is contained in:
atkurtul 2020-12-31 08:28:33 +03:00 committed by GitHub
parent acb4871710
commit 0b7c7eed6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,6 +136,7 @@ if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR
target_compile_options(glfw PRIVATE "-Wall")
if(CMAKE_GENERATOR MATCHES "Visual Studio")
# 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")
else()
target_compile_options(glfw PRIVATE "-Wall")