summaryrefslogtreecommitdiff
path: root/Tests/IncludeDirectories
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-05-23 09:10:04 -0400
committerBrad King <brad.king@kitware.com>2013-05-23 09:21:45 -0400
commita97240b969c8ce48f728ee113f47f9c2ba598aeb (patch)
tree8dcf848166fb4f2846d02a5e9d62b83da3a4b912 /Tests/IncludeDirectories
parent2f84dfec93b6a5d8b4db89bafe09688382b96997 (diff)
downloadcmake-a97240b969c8ce48f728ee113f47f9c2ba598aeb.tar.gz
Tests/IncludeDirectories: Avoid shared library with no symbols
The parent commit added a empty_entry_test shared library to the IncludeDirectories test. Some toolchains fail to create a shared library with no user-defined symbols, so provide a dummy symbol.
Diffstat (limited to 'Tests/IncludeDirectories')
-rw-r--r--Tests/IncludeDirectories/empty.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/IncludeDirectories/empty.cpp b/Tests/IncludeDirectories/empty.cpp
index ab32cf6c8a..1787013f64 100644
--- a/Tests/IncludeDirectories/empty.cpp
+++ b/Tests/IncludeDirectories/empty.cpp
@@ -1 +1,4 @@
-// No content
+#ifdef _WIN32
+__declspec(dllexport)
+#endif
+int empty() { return 0; }