mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
@@ -28,8 +28,7 @@ if (${CMAKE_VERSION} VERSION_EQUAL "3.1.0" OR
|
|||||||
set(CMAKE_C_STANDARD 99)
|
set(CMAKE_C_STANDARD 99)
|
||||||
else()
|
else()
|
||||||
# Remove this fallback when removing support for CMake version less than 3.1
|
# Remove this fallback when removing support for CMake version less than 3.1
|
||||||
add_compile_options(
|
add_compile_options("$<$<C_COMPILER_ID:AppleClang>:-std=c99>"
|
||||||
"$<$<C_COMPILER_ID:AppleClang>:-std=c99>"
|
|
||||||
"$<$<C_COMPILER_ID:Clang>:-std=c99>"
|
"$<$<C_COMPILER_ID:Clang>:-std=c99>"
|
||||||
"$<$<C_COMPILER_ID:GNU>:-std=c99>")
|
"$<$<C_COMPILER_ID:GNU>:-std=c99>")
|
||||||
|
|
||||||
|
|||||||
@@ -25,8 +25,7 @@ if (${CMAKE_VERSION} VERSION_EQUAL "3.1.0" OR
|
|||||||
set(CMAKE_C_STANDARD 99)
|
set(CMAKE_C_STANDARD 99)
|
||||||
else()
|
else()
|
||||||
# Remove this fallback when removing support for CMake version less than 3.1
|
# Remove this fallback when removing support for CMake version less than 3.1
|
||||||
add_compile_options(
|
add_compile_options("$<$<C_COMPILER_ID:AppleClang>:-std=c99>"
|
||||||
"$<$<C_COMPILER_ID:AppleClang>:-std=c99>"
|
|
||||||
"$<$<C_COMPILER_ID:Clang>:-std=c99>"
|
"$<$<C_COMPILER_ID:Clang>:-std=c99>"
|
||||||
"$<$<C_COMPILER_ID:GNU>:-std=c99>")
|
"$<$<C_COMPILER_ID:GNU>:-std=c99>")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user