diff options
author | Stephen Kelly <steveire@gmail.com> | 2011-08-10 19:28:42 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2011-08-10 19:28:42 (GMT) |
commit | bab4a22036a988f49e1b711d092416c18cc16870 (patch) | |
tree | 071840dc76fdb0416ccf4e94670cba7234f1592c /Modules/GenerateExportHeader.cmake | |
parent | cff94935982def7302cca11d521bf55587b8ebf7 (diff) | |
download | CMake-bab4a22036a988f49e1b711d092416c18cc16870.zip CMake-bab4a22036a988f49e1b711d092416c18cc16870.tar.gz CMake-bab4a22036a988f49e1b711d092416c18cc16870.tar.bz2 |
Disable all export macros on Borland.
Diffstat (limited to 'Modules/GenerateExportHeader.cmake')
-rw-r--r-- | Modules/GenerateExportHeader.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake index cb7b0d8..1395f15 100644 --- a/Modules/GenerateExportHeader.cmake +++ b/Modules/GenerateExportHeader.cmake @@ -148,7 +148,7 @@ macro(_DO_SET_MACRO_VALUES TARGET_LIBRARY) set(DEFINE_IMPORT) set(DEFINE_NO_EXPORT) - if(WIN32) + if(WIN32 AND NOT (${CMAKE_CXX_COMPILER_ID} MATCHES Borland)) set(DEFINE_DEPRECATED "__declspec(deprecated)") else() set(DEFINE_DEPRECATED "__attribute__ ((__deprecated__))") @@ -157,7 +157,7 @@ macro(_DO_SET_MACRO_VALUES TARGET_LIBRARY) get_property(type TARGET ${TARGET_LIBRARY} PROPERTY TYPE) if(NOT ${type} STREQUAL "STATIC_LIBRARY") - if(WIN32) + if(WIN32 AND NOT (${CMAKE_CXX_COMPILER_ID} MATCHES Borland)) set(DEFINE_EXPORT "__declspec(dllexport)") set(DEFINE_IMPORT "__declspec(dllimport)") elseif(COMPILER_HAS_HIDDEN_VISIBILITY AND USE_COMPILER_HIDDEN_VISIBILITY) |