Disable all export macros on Borland.

This commit is contained in:
Stephen Kelly 2011-08-10 21:28:42 +02:00
parent cff9493598
commit bab4a22036
1 changed files with 2 additions and 2 deletions

View File

@ -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)