|
|
@ -56,6 +56,7 @@ endif ()
|
|
|
|
# build shared option
|
|
|
|
# build shared option
|
|
|
|
if(NOT WIN32)
|
|
|
|
if(NOT WIN32)
|
|
|
|
option(SPDLOG_BUILD_SHARED "Build shared library" OFF)
|
|
|
|
option(SPDLOG_BUILD_SHARED "Build shared library" OFF)
|
|
|
|
|
|
|
|
option(SPDLOG_DLL_LOCAL_REGISTRY "If enabled, the logger registry will not be shared between shared objects" OFF)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
# example options
|
|
|
|
# example options
|
|
|
@ -122,6 +123,10 @@ else()
|
|
|
|
add_library(spdlog STATIC ${SPDLOG_SRCS} ${SPDLOG_ALL_HEADERS})
|
|
|
|
add_library(spdlog STATIC ${SPDLOG_SRCS} ${SPDLOG_ALL_HEADERS})
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (SPDLOG_DLL_LOCAL_REGISTRY)
|
|
|
|
|
|
|
|
target_compile_definitions(spdlog PUBLIC SPDLOG_DLL_LOCAL_REGISTRY)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
add_library(spdlog::spdlog ALIAS spdlog)
|
|
|
|
add_library(spdlog::spdlog ALIAS spdlog)
|
|
|
|
|
|
|
|
|
|
|
|
target_compile_definitions(spdlog PUBLIC SPDLOG_COMPILED_LIB)
|
|
|
|
target_compile_definitions(spdlog PUBLIC SPDLOG_COMPILED_LIB)
|
|
|
|