Update CMakeLists.txt

This commit is contained in:
atkurtul 2020-12-30 08:07:27 +03:00 committed by GitHub
parent 0b9e48fa3d
commit 532472780b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()