diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-19 18:43:04 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-19 18:57:54 (GMT) |
commit | 8dc0c976661ff048c346d6c68666bd7056ed84a5 (patch) | |
tree | b80676675fe99412688caee3245b95ce27288693 /Tests/Module | |
parent | 813ace90e4d02a782176ea13bcec15a3e9338210 (diff) | |
download | CMake-8dc0c976661ff048c346d6c68666bd7056ed84a5.zip CMake-8dc0c976661ff048c346d6c68666bd7056ed84a5.tar.gz CMake-8dc0c976661ff048c346d6c68666bd7056ed84a5.tar.bz2 |
WCDH: Fix the C_STANDARD property in the tests.
The CXX_STANDARD property validates the values allowed for it,
and '90' is not a valid value for it. However, the validation is only
done for languages enabled for the target, and as C_undefined has no
CXX files, that language is not enabled for it.
This amends commit v3.1.0-rc3~23^2 (WCDH: Make the header -Wundef
safe for the C language., 2014-11-24).
Diffstat (limited to 'Tests/Module')
-rw-r--r-- | Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt b/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt index b5e46c0..78c4a6a 100644 --- a/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt +++ b/Tests/Module/WriteCompilerDetectionHeader/CMakeLists.txt @@ -71,7 +71,7 @@ if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "AppleClang") add_executable(C_undefined c_undefined.c) - set_property(TARGET C_undefined PROPERTY CXX_STANDARD 90) + set_property(TARGET C_undefined PROPERTY C_STANDARD 90) target_compile_options(C_undefined PRIVATE -Werror=undef) endif() |