summaryrefslogtreecommitdiffstats
path: root/Tests/ConfigSources/shared.cpp
diff options
context:
space:
mode:
authorDeniz Bahadir <dbahadir@benocs.com>2020-09-22 12:04:26 (GMT)
committerBrad King <brad.king@kitware.com>2020-09-23 14:05:55 (GMT)
commit2f76e7429b96ae05e5f63d6458555a06b19c62e5 (patch)
tree8496837a64a4165fa340017e45d6fc43bcaa780b /Tests/ConfigSources/shared.cpp
parentd575ecc9dedd214ebd941913b81124a674be5008 (diff)
downloadCMake-2f76e7429b96ae05e5f63d6458555a06b19c62e5.zip
CMake-2f76e7429b96ae05e5f63d6458555a06b19c62e5.tar.gz
CMake-2f76e7429b96ae05e5f63d6458555a06b19c62e5.tar.bz2
OBJECT libraries: Properly recognize if sources depend on configuration
Fixes: #21198
Diffstat (limited to 'Tests/ConfigSources/shared.cpp')
-rw-r--r--Tests/ConfigSources/shared.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/ConfigSources/shared.cpp b/Tests/ConfigSources/shared.cpp
new file mode 100644
index 0000000..1726c46
--- /dev/null
+++ b/Tests/ConfigSources/shared.cpp
@@ -0,0 +1,8 @@
+#if defined(_WIN32)
+# define EXPORT __declspec(dllexport)
+#else
+# define EXPORT
+#endif
+EXPORT void shared()
+{
+}