File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -82,16 +82,18 @@ ENDIF()
82
82
add_library (g3logger ${SRC_FILES} )
83
83
set_target_properties (g3logger PROPERTIES LINKER_LANGUAGE CXX)
84
84
target_link_libraries (g3logger ${PLATFORM_LINK_LIBRIES} )
85
+ SET (G3LOG_LIBRARY g3logger)
85
86
87
+ if (ADD_BUILD_WIN_SHARED OR NOT (MSVC OR MINGW))
86
88
add_library (g3logger_shared SHARED ${SRC_FILES} )
87
89
set_target_properties (g3logger_shared PROPERTIES LINKER_LANGUAGE CXX)
88
90
IF (APPLE )
89
91
set_target_properties (g3logger_shared PROPERTIES MACOSX_RPATH TRUE )
90
92
ENDIF (APPLE )
91
93
target_link_libraries (g3logger_shared ${PLATFORM_LINK_LIBRIES} )
92
-
94
+
93
95
SET (G3LOG_SHARED_LIBRARY g3logger_shared)
94
- SET (G3LOG_LIBRARY g3logger )
96
+ endif ( )
95
97
96
98
97
99
Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ endif()
77
77
#==========================================================================
78
78
INCLUDE (${g3log_SOURCE_DIR} /GenerateMacroDefinitionsFile.cmake)
79
79
80
+ option (ADD_BUILD_WIN_SHARED "Build shared library on Windows" OFF )
81
+
80
82
# =========================================================================
81
83
# G3LOG BUILD
82
84
#==========================================================================
You can’t perform that action at this time.
0 commit comments