diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2019-05-30 14:00:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-06-03 14:20:23 (GMT) |
commit | 808b8180632aef06e7a3644fb4d3957722abc3f3 (patch) | |
tree | 5379256750380540b9a09e62d5e6ae0070b9787b /Tests/CMakeCommands/target_compile_definitions/consumer.c | |
parent | 9fd602bfd33479b1acecd40e5c1b76ce37d59798 (diff) | |
download | CMake-808b8180632aef06e7a3644fb4d3957722abc3f3.zip CMake-808b8180632aef06e7a3644fb4d3957722abc3f3.tar.gz CMake-808b8180632aef06e7a3644fb4d3957722abc3f3.tar.bz2 |
Genex: CompileLang and CompileLangAndId now match against a list of ids
This allows for expressions such as:
$<COMPILE_LANG_AND_ID, CXX, GNU, Clang>
Diffstat (limited to 'Tests/CMakeCommands/target_compile_definitions/consumer.c')
-rw-r--r-- | Tests/CMakeCommands/target_compile_definitions/consumer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_compile_definitions/consumer.c b/Tests/CMakeCommands/target_compile_definitions/consumer.c index bacd4c4..bb65e01 100644 --- a/Tests/CMakeCommands/target_compile_definitions/consumer.c +++ b/Tests/CMakeCommands/target_compile_definitions/consumer.c @@ -35,6 +35,10 @@ # endif #endif +#if !LANG_IS_C_OR_CXX +# error Expected LANG_IS_C_OR_CXX +#endif + void consumer_c() { } |