summaryrefslogtreecommitdiff
path: root/Tests/CMakeCommands/target_link_libraries/compile_only.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CMakeCommands/target_link_libraries/compile_only.cpp')
-rw-r--r--Tests/CMakeCommands/target_link_libraries/compile_only.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/CMakeCommands/target_link_libraries/compile_only.cpp b/Tests/CMakeCommands/target_link_libraries/compile_only.cpp
new file mode 100644
index 0000000000..7519bd0c6e
--- /dev/null
+++ b/Tests/CMakeCommands/target_link_libraries/compile_only.cpp
@@ -0,0 +1,8 @@
+
+#ifndef USE_EXAMPLE
+# error "Missing propagated define"
+#endif
+
+// Solaris needs non-empty content so ensure
+// we have at least one symbol
+int Solaris_requires_a_symbol_here = 0;