mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 04:09:00 +08:00
Reapply introduction of CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
This commit is contained in:
parent
4fab470553
commit
25a04acf11
@ -40,7 +40,14 @@ if(APPLE)
|
||||
link_libraries(${COREFOUNDATION_LIBRARY} ${CORESERVICES_LIBRARY} ${FOUNDATION_LIBRARY})
|
||||
endif()
|
||||
|
||||
if(NOT BUILD_SHARED_LIBS)
|
||||
# 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_STATIC_LIB -DGIOMM_STATIC_LIB)
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user