summaryrefslogtreecommitdiffstats
path: root/Modules/GenerateExportHeader.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-08-10 20:19:39 (GMT)
committerStephen Kelly <steveire@gmail.com>2011-08-10 20:19:39 (GMT)
commit7924c1d6a8db87ded487e744ba3e8881e8336d00 (patch)
treea929759f78d575723fbed192b9ee9aaf8a132db9 /Modules/GenerateExportHeader.cmake
parent50460ea9de40d7c8ef631bbdb5d44b9aa4c14718 (diff)
downloadCMake-7924c1d6a8db87ded487e744ba3e8881e8336d00.zip
CMake-7924c1d6a8db87ded487e744ba3e8881e8336d00.tar.gz
CMake-7924c1d6a8db87ded487e744ba3e8881e8336d00.tar.bz2
Another attempt at fixing Borland.
Apparently it still needs to be exported, but only declspec(deprecated) does not work.
Diffstat (limited to 'Modules/GenerateExportHeader.cmake')
-rw-r--r--Modules/GenerateExportHeader.cmake6
1 files changed, 2 insertions, 4 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake
index 5ecb807..c921d89 100644
--- a/Modules/GenerateExportHeader.cmake
+++ b/Modules/GenerateExportHeader.cmake
@@ -160,10 +160,8 @@ macro(_DO_SET_MACRO_VALUES TARGET_LIBRARY)
if(NOT ${type} STREQUAL "STATIC_LIBRARY")
if(WIN32)
- if (NOT (${CMAKE_CXX_COMPILER_ID} MATCHES Borland))
- set(DEFINE_EXPORT "__declspec(dllexport)")
- set(DEFINE_IMPORT "__declspec(dllimport)")
- endif()
+ set(DEFINE_EXPORT "__declspec(dllexport)")
+ set(DEFINE_IMPORT "__declspec(dllimport)")
elseif(COMPILER_HAS_HIDDEN_VISIBILITY AND USE_COMPILER_HIDDEN_VISIBILITY)
set(DEFINE_EXPORT "__attribute__((visibility(\"default\")))")
set(DEFINE_IMPORT "__attribute__((visibility(\"default\")))")