diff --git a/Build.cmake b/Build.cmake index 3af80cf..ece3277 100644 --- a/Build.cmake +++ b/Build.cmake @@ -90,6 +90,9 @@ ENDIF() SET(G3LOG_LIBRARY g3logger) if(ADD_BUILD_WIN_SHARED OR NOT(MSVC OR MINGW)) + IF(NOT(CMAKE_VERSION LESS 3.4) AND MSVC) + set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) + ENDIF() add_library(g3logger_shared SHARED ${SRC_FILES}) set_target_properties(g3logger_shared PROPERTIES LINKER_LANGUAGE CXX) IF(APPLE)