mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-10-28 12:31:05 +00:00
Replace -ansi with -std=c89 for better compatibility
This commit is contained in:
1 parent
a22da43578
commit
706636fb20
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -13,7 +13,7 @@ set(CJSON_UTILS_VERSION_SO 1)
|
||||
set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
|
||||
|
||||
if(("${CMAKE_C_COMPILER_ID}" MATCHES "GNU") OR ("${CMAKE_C_COMPILER_ID}" MATCHES "Clang"))
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ansi -pedantic -Wall -Wextra -Werror -Wstrict-prototypes -Wwrite-strings")
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c89 -pedantic -Wall -Wextra -Werror -Wstrict-prototypes -Wwrite-strings")
|
||||
endif()
|
||||
|
||||
#variables for pkg-config
|
||||
|
||||
Reference in new issue
Block a user