summaryrefslogtreecommitdiffstats
path: root/Tests/Framework/bar.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-05-08 15:53:39 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-05-08 15:53:39 (GMT)
commit39ccc4fb11b52a3dbc18d50e19003cd9a708f623 (patch)
treefb24c43b02cc15129c9e33fbf8ed5a8e25bc8e6e /Tests/Framework/bar.cxx
parente6b8aa496a224c92770cb9a7f1cb733f137a611d (diff)
downloadCMake-39ccc4fb11b52a3dbc18d50e19003cd9a708f623.zip
CMake-39ccc4fb11b52a3dbc18d50e19003cd9a708f623.tar.gz
CMake-39ccc4fb11b52a3dbc18d50e19003cd9a708f623.tar.bz2
ENH: fix it so that the FRAMEWORK property does not break the building of normal shared libs on non-mac platforms
Diffstat (limited to 'Tests/Framework/bar.cxx')
-rw-r--r--Tests/Framework/bar.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/Framework/bar.cxx b/Tests/Framework/bar.cxx
index 37c132a..5c9d612 100644
--- a/Tests/Framework/bar.cxx
+++ b/Tests/Framework/bar.cxx
@@ -1,4 +1,7 @@
-void foo();
+#ifdef _WIN32
+# define CM_TEST_LIB_IMPORT __declspec( dllimport )
+#endif
+CM_TEST_LIB_IMPORT void foo();
int main()
{
foo();