1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00
(cherry picked from commit 953a1c3f8b)
This commit is contained in:
Camilla Löwy 2019-11-10 15:20:29 +01:00
parent 7a10e6439c
commit 5ea34d62bf
2 changed files with 2 additions and 4 deletions

View File

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

View File

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