diff options
| author | grdowns <grdowns@microsoft.com> | 2019-06-05 18:24:16 -0700 |
|---|---|---|
| committer | grdowns <grdowns@microsoft.com> | 2019-06-05 18:24:16 -0700 |
| commit | dc008d14a902bd5ae1d2b51d10d16020e461b7f7 (patch) | |
| tree | 539aab67561d70e6760c92cf372e128104409dd5 /ports | |
| parent | d46b696071d13c2d43784243aad83edeea177176 (diff) | |
| download | vcpkg-dc008d14a902bd5ae1d2b51d10d16020e461b7f7.tar.gz vcpkg-dc008d14a902bd5ae1d2b51d10d16020e461b7f7.zip | |
Remove unneeded symbol export; Fix Linux build
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/glibmm/CMakeLists.txt | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/ports/glibmm/CMakeLists.txt b/ports/glibmm/CMakeLists.txt index c6fa7027a..942776c6d 100644 --- a/ports/glibmm/CMakeLists.txt +++ b/ports/glibmm/CMakeLists.txt @@ -40,16 +40,7 @@ if(APPLE) link_libraries(${COREFOUNDATION_LIBRARY} ${CORESERVICES_LIBRARY} ${FOUNDATION_LIBRARY})
endif()
-# 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)
-if (WIN32)
- set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
-endif()
-
-if(BUILD_SHARED_LIBS)
- add_definitions(-DGLIBMM_DLL -DGIOMM_DLL)
-else()
+if(NOT BUILD_SHARED_LIBS)
add_definitions(-DGLIBMM_STATIC_LIB -DGIOMM_STATIC_LIB)
endif()
|
