summaryrefslogtreecommitdiffstats
path: root/Tests/IncludeDirectories
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-05-23 13:10:04 (GMT)
committerBrad King <brad.king@kitware.com>2013-05-23 13:21:45 (GMT)
commita97240b969c8ce48f728ee113f47f9c2ba598aeb (patch)
tree8dcf848166fb4f2846d02a5e9d62b83da3a4b912 /Tests/IncludeDirectories
parent2f84dfec93b6a5d8b4db89bafe09688382b96997 (diff)
downloadCMake-a97240b969c8ce48f728ee113f47f9c2ba598aeb.zip
CMake-a97240b969c8ce48f728ee113f47f9c2ba598aeb.tar.gz
CMake-a97240b969c8ce48f728ee113f47f9c2ba598aeb.tar.bz2
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 ab32cf6..1787013 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; }