aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/glibmm/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/ports/glibmm/CMakeLists.txt b/ports/glibmm/CMakeLists.txt
index 389ae8dfb..d48d9261b 100644
--- a/ports/glibmm/CMakeLists.txt
+++ b/ports/glibmm/CMakeLists.txt
@@ -40,9 +40,9 @@ if(APPLE)
link_libraries(${COREFOUNDATION_LIBRARY} ${CORESERVICES_LIBRARY} ${FOUNDATION_LIBRARY})
endif()
-# A hacky solution for building Windows DLLs from sources ported from Linux.
-# The cleaner approach would be to manually add __declspec(dllexport) to all public symbols in the header files or
-# construct a .def file.
+# Activate workaround for exporting all symbols from Windows DLLs to mimic the
+# behavior on Linux, where dynamic libraries always export all symbols.
+# The same approach was already used by the upstream MSVC build (see MSVC_NMake/gendef/gendef.cc)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
if(BUILD_SHARED_LIBS)