diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-02-08 19:10:22 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-02-08 19:10:22 (GMT) |
commit | faa927e273e04b9aadc13fb1f2b8b307b7383cd2 (patch) | |
tree | c6b6764c2d46c0a47e42cee2249391ca8f7a2747 /Tests/ObjectLibrary/B/b.h | |
parent | 510fdcb18801076e2041eaae2941375eecc93ec2 (diff) | |
download | CMake-faa927e273e04b9aadc13fb1f2b8b307b7383cd2.zip CMake-faa927e273e04b9aadc13fb1f2b8b307b7383cd2.tar.gz CMake-faa927e273e04b9aadc13fb1f2b8b307b7383cd2.tar.bz2 |
Make sure INTERFACE properties work with OBJECT libraries.
Diffstat (limited to 'Tests/ObjectLibrary/B/b.h')
-rw-r--r-- | Tests/ObjectLibrary/B/b.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/ObjectLibrary/B/b.h b/Tests/ObjectLibrary/B/b.h index 11b22f4..3489c71 100644 --- a/Tests/ObjectLibrary/B/b.h +++ b/Tests/ObjectLibrary/B/b.h @@ -4,8 +4,15 @@ #ifndef B_DEF # error "B_DEF not defined" #endif + #if defined(_WIN32) && defined(Bexport) # define EXPORT_B __declspec(dllexport) #else # define EXPORT_B #endif + +#if defined(_WIN32) && defined(SHARED_B) +# define IMPORT_B __declspec(dllimport) +#else +# define IMPORT_B +#endif |