cmake: Export symbols on windows when building as SHARED lib

This commit is contained in:
Corentin Le Molgat
2021-11-29 11:05:18 +01:00
parent 882f13d248
commit 84e98a0d04

View File

@@ -53,6 +53,10 @@ else()
endforeach()
endif()
if(BUILD_SHARED_LIBS AND MSVC)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()
# By default only build the C++ library.
option(BUILD_CXX "Build C++ library" ON)
message(STATUS "Build C++ library: ${BUILD_CXX}")