Stephen Kelly a63fcbcb9f 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.
2013-09-24 20:00:31 +02:00

23 lines
364 B
C

#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