We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7db3320 commit 0013a6fCopy full SHA for 0013a6f
CMakeLists.txt
@@ -53,7 +53,12 @@ option(SONAME "Set the (SO)VERSION of the target"
53
option(DEPRECATE_HARD "Do not include deprecated functions in the library" OFF)
54
55
# Compilation options
56
+# Default to c99 on Android Studio for compatibility; c90 everywhere else
57
+if("${CMAKE_SYSTEM_NAME}" STREQUAL "Android")
58
+ set(CMAKE_C_STANDARD "99" CACHE STRING "The C standard to compile against")
59
+else()
60
set(CMAKE_C_STANDARD "90" CACHE STRING "The C standard to compile against")
61
+endif()
62
option(CMAKE_C_EXTENSIONS "Whether compiler extensions are supported" OFF)
63
option(ENABLE_WERROR "Enable compilation with -Werror" OFF)
64
0 commit comments