Newer versions of cmake seem to use CMAKE_C_FLAGS for objective-c. Now both flags are set for compatibility.