mirror of
https://github.com/KjellKod/g3log.git
synced 2025-01-19 08:46:42 +01:00
#13 generate import lib in msvc using cmake >= 3.4
This commit is contained in:
parent
77b1d1c0d5
commit
d125990007
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user