summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeCommands/target_compile_options/consumer.cpp
diff options
context:
space:
mode:
authorRobert Maynard <robert.maynard@kitware.com>2019-05-29 18:55:18 (GMT)
committerBrad King <brad.king@kitware.com>2019-06-03 14:20:23 (GMT)
commitec66af2026e085e7b648b222794f0f213183ea1e (patch)
tree349db0d7cc51317dce0572bfff44878ec85a39d4 /Tests/CMakeCommands/target_compile_options/consumer.cpp
parent2d4787fc4ddc077e1d8fcb807768d1ecc7902a73 (diff)
downloadCMake-ec66af2026e085e7b648b222794f0f213183ea1e.zip
CMake-ec66af2026e085e7b648b222794f0f213183ea1e.tar.gz
CMake-ec66af2026e085e7b648b222794f0f213183ea1e.tar.bz2
Genex: CompilerId now can match against a list of ids.
This allows for expressions like: $<$<CXX_COMPILER_ID:Clang,GNU>:-DMY_PRIVATE_DEFINE>
Diffstat (limited to 'Tests/CMakeCommands/target_compile_options/consumer.cpp')
-rw-r--r--Tests/CMakeCommands/target_compile_options/consumer.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_compile_options/consumer.cpp b/Tests/CMakeCommands/target_compile_options/consumer.cpp
index fe79eb5..5cbe049 100644
--- a/Tests/CMakeCommands/target_compile_options/consumer.cpp
+++ b/Tests/CMakeCommands/target_compile_options/consumer.cpp
@@ -13,6 +13,22 @@
# error Expected MY_INTERFACE_DEFINE
# endif
+# ifndef MY_MULTI_COMP_INTERFACE_DEFINE
+# error Expected MY_MULTI_COMP_INTERFACE_DEFINE
+# endif
+
+#endif
+
+#ifdef DO_CLANG_TESTS
+
+# ifdef MY_PRIVATE_DEFINE
+# error Unexpected MY_PRIVATE_DEFINE
+# endif
+
+# ifndef MY_MULTI_COMP_INTERFACE_DEFINE
+# error Expected MY_MULTI_COMP_INTERFACE_DEFINE
+# endif
+
#endif
#ifndef CONSUMER_LANG_CXX