CMake/Tests/Module
Stephen Kelly fb3487a997 Features: Fix C90 feature detection.
This bug caused c_function_prototypes to not be recorded at configure
time when compiling with -std=gnu99 or similar. In the case of feature
recording, that was not a problem, because the logic in
CMakeDetermineCompileFeatures.cmake currently assumes that a feature
present for an earlier standard is present for a later standard.

However, the detection strings are also used in WriteCompilerDetectionHeader,
so the feature macro has been defined to '0' when using a later language
dialect.

Fix that by not checking the existence of the __STDC_VERSION__ macro at
all when detecting C90 features.
2015-02-04 18:38:21 -05:00
..
CheckTypeSize CheckTypeSize: Add unit tests 2013-10-21 16:39:04 +02:00
ExternalData ExternalData: Add support for custom download scripts 2015-01-15 10:48:09 -05:00
FindDependency find_dependency: Extend the tests for use of EXACT macro parameter. 2014-03-10 09:07:38 +01:00
GenerateExportHeader HP aCC: record compiler flag for Ansi C++98 support for version 3.80 onwards 2014-04-25 17:59:57 +02:00
WriteCompilerDetectionHeader Features: Fix C90 feature detection. 2015-02-04 18:38:21 -05:00