diff options
author | Brad King <brad.king@kitware.com> | 2018-04-02 13:59:50 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-04-02 14:00:20 (GMT) |
commit | 5d5e1e691772ecfd9224be0afe33802f8aee3fc3 (patch) | |
tree | bbe53ba8fa22719befa53c357d33f9e7261f45d0 /Tests/CompileFeatures/genex_test.c | |
parent | a0b5dade9a494783e7b130e27e1dbc12fa1772c6 (diff) | |
parent | a53cf69022e57d859864d59b9c03238f180cb400 (diff) | |
download | CMake-5d5e1e691772ecfd9224be0afe33802f8aee3fc3.zip CMake-5d5e1e691772ecfd9224be0afe33802f8aee3fc3.tar.gz CMake-5d5e1e691772ecfd9224be0afe33802f8aee3fc3.tar.bz2 |
Merge topic 'features-msvc-c'
a53cf69022 Features: Record C features for MSVC
e62dfeccb1 Features: Do not assume c_restrict support in CompileFeatures test
c22cdf78d7 Features: Fix CompileFeatures test checks for C
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Harry Mallon <hjmallon@gmail.com>
Merge-request: !1897
Diffstat (limited to 'Tests/CompileFeatures/genex_test.c')
-rw-r--r-- | Tests/CompileFeatures/genex_test.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Tests/CompileFeatures/genex_test.c b/Tests/CompileFeatures/genex_test.c index 1d54840..e58d793 100644 --- a/Tests/CompileFeatures/genex_test.c +++ b/Tests/CompileFeatures/genex_test.c @@ -8,7 +8,7 @@ #error EXPECT_C_RESTRICT not defined #endif -#if !EXPECT_C_STATIC_ASSERT +#if !HAVE_C_STATIC_ASSERT #if EXPECT_C_STATIC_ASSERT #error "Expect c_static_assert feature" #endif @@ -18,11 +18,17 @@ #endif #endif -#if !EXPECT_C_FUNCTION_PROTOTYPES +#if !HAVE_C_FUNCTION_PROTOTYPES +#if EXPECT_C_FUNCTION_PROTOTYPES #error Expect c_function_prototypes support #endif +#else +#if !EXPECT_C_FUNCTION_PROTOTYPES +#error Expect no c_function_prototypes support +#endif +#endif -#if !EXPECT_C_RESTRICT +#if !HAVE_C_RESTRICT #if EXPECT_C_RESTRICT #error Expect c_restrict support #endif |