mirror of
https://github.com/DaveGamble/cJSON
synced 2025-04-28 14:17:56 +00:00
Merge d32b3d6fcf
into 12c4bf1986
This commit is contained in:
commit
f33873c298
@ -17,7 +17,7 @@ set(custom_compiler_flags)
|
|||||||
include(CheckCCompilerFlag)
|
include(CheckCCompilerFlag)
|
||||||
option(ENABLE_CUSTOM_COMPILER_FLAGS "Enables custom compiler flags" ON)
|
option(ENABLE_CUSTOM_COMPILER_FLAGS "Enables custom compiler flags" ON)
|
||||||
if (ENABLE_CUSTOM_COMPILER_FLAGS)
|
if (ENABLE_CUSTOM_COMPILER_FLAGS)
|
||||||
if (("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang") OR ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU"))
|
if (("${CMAKE_C_COMPILER_ID}" MATCHES "Clang") OR ("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU"))
|
||||||
list(APPEND custom_compiler_flags
|
list(APPEND custom_compiler_flags
|
||||||
-std=c89
|
-std=c89
|
||||||
-pedantic
|
-pedantic
|
||||||
|
Loading…
Reference in New Issue
Block a user