mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
Cocoa: Fix detection of Clang
This commit is contained in:
parent
2e70950c0f
commit
1d95acdf56
@ -79,7 +79,10 @@ endif()
|
|||||||
|
|
||||||
# Make GCC and Clang warn about declarations that VS 2010 and 2012 won't accept
|
# Make GCC and Clang warn about declarations that VS 2010 and 2012 won't accept
|
||||||
# for all source files that VS will build
|
# for all source files that VS will build
|
||||||
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
|
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR
|
||||||
|
"${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR
|
||||||
|
"${CMAKE_C_COMPILER_ID}" STREQUAL "AppleClang")
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(windows_SOURCES ${glfw_SOURCES})
|
set(windows_SOURCES ${glfw_SOURCES})
|
||||||
else()
|
else()
|
||||||
@ -115,6 +118,7 @@ target_compile_definitions(glfw PRIVATE
|
|||||||
|
|
||||||
# Enable a reasonable set of warnings (no, -Wextra is not reasonable)
|
# Enable a reasonable set of warnings (no, -Wextra is not reasonable)
|
||||||
target_compile_options(glfw PRIVATE
|
target_compile_options(glfw PRIVATE
|
||||||
|
"$<$<C_COMPILER_ID:AppleClang>:-Wall>"
|
||||||
"$<$<C_COMPILER_ID:Clang>:-Wall>"
|
"$<$<C_COMPILER_ID:Clang>:-Wall>"
|
||||||
"$<$<C_COMPILER_ID:GNU>:-Wall>")
|
"$<$<C_COMPILER_ID:GNU>:-Wall>")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user