Apply patch to export all symbols.

This commit is contained in:
Carlos O'Ryan 2018-12-14 23:12:44 -05:00
parent f8ce85feef
commit bc79cf9a7c
No known key found for this signature in database
GPG Key ID: BC4C1DC8B0DEF583
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,15 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 80b7d17..6ab78e2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,6 +15,10 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
+# When compiling a Windows DLL export all symbols, just like Unix shared
+# objects do.
+set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
+
# https://github.com/izenecloud/cmake/blob/master/SetCompilerWarningAll.cmake
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# Use the highest warning level for Visual Studio.

View File

@ -6,6 +6,7 @@ vcpkg_from_github(
REF 1.0.6 REF 1.0.6
SHA512 c30f6510d6348f15dcdddc06e375f21a69681cd615483d67628b32de747e5e98200fa49faf7e3fc30a1302991fd1f9c9a706c9eb4e13c9c6c09e74066474ea7b SHA512 c30f6510d6348f15dcdddc06e375f21a69681cd615483d67628b32de747e5e98200fa49faf7e3fc30a1302991fd1f9c9a706c9eb4e13c9c6c09e74066474ea7b
HEAD_REF master HEAD_REF master
PATCHES ${CMAKE_CURRENT_LIST_DIR}/0001_export_symbols.patch
) )
vcpkg_configure_cmake( vcpkg_configure_cmake(