cJSON
cJSON copied to clipboard
Also add custom compiler flags for AppleClang
This project adds custom compiler flags when the compiler is "Clang" or "GNU" (gcc). Apple's version of Clang (which comes with Xcode and the Xcode command line tools on macOS) identifies itself not as "Clang" but "AppleClang" so before this PR it did not receive those custom flags.
Apple's version of Clang … identifies itself not as "Clang" but "AppleClang"
…when CMP0025 is NEW (i.e. -DCMAKE_POLICY_DEFAULT_CMP0025=NEW is passed to cmake).