mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
Also add custom compiler flags for AppleClang
This commit is contained in:
parent
cb8693b058
commit
d32b3d6fcf
@ -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