summaryrefslogtreecommitdiffstats
path: root/Tests/ExportImport/Export/systemlib.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-08-29 08:28:09 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-09-24 18:00:31 (GMT)
commita63fcbcb9f6c09294dfbeb8480be822f42529755 (patch)
tree7d24cffa66390814152293270a126ad030da2a39 /Tests/ExportImport/Export/systemlib.h
parent9bcf6adc388c2306033c65270357eb1a1da83d76 (diff)
downloadCMake-a63fcbcb9f6c09294dfbeb8480be822f42529755.zip
CMake-a63fcbcb9f6c09294dfbeb8480be822f42529755.tar.gz
CMake-a63fcbcb9f6c09294dfbeb8480be822f42529755.tar.bz2
Always consider includes from IMPORTED targets to be SYSTEM.
Introduce a target property to control this behavior variable to set the default value for the target property. This does not affect try_compile runs.
Diffstat (limited to 'Tests/ExportImport/Export/systemlib.h')
-rw-r--r--Tests/ExportImport/Export/systemlib.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/Tests/ExportImport/Export/systemlib.h b/Tests/ExportImport/Export/systemlib.h
new file mode 100644
index 0000000..f7900c0
--- /dev/null
+++ b/Tests/ExportImport/Export/systemlib.h
@@ -0,0 +1,22 @@
+
+#ifndef SYSTEMLIB_H
+#define SYSTEMLIB_H
+
+#if defined(_WIN32) || defined(__CYGWIN__)
+# define systemlib_EXPORT __declspec(dllexport)
+#else
+# define systemlib_EXPORT
+#endif
+
+struct systemlib_EXPORT SystemStruct
+{
+ SystemStruct();
+
+ void someMethod()
+ {
+ int unused;
+ // unused warning not issued when this header is used as a system header.
+ }
+};
+
+#endif