#13 generate import lib in msvc using cmake >= 3.4

This commit is contained in:
cstamatopoulos 2015-11-26 19:13:45 -05:00
parent 77b1d1c0d5
commit d125990007

View File

@ -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)