mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
wip
This commit is contained in:
@@ -59,7 +59,8 @@ message(STATUS "Static lib: " ${SPDLOG_STATIC_LIB})
|
||||
|
||||
if(SPDLOG_STATIC_LIB)
|
||||
add_definitions(-DSPDLOG_STATIC_LIB)
|
||||
file(GLOB SRC_FILES ${HEADER_BASE}/impl/*.cpp)
|
||||
set(SRC_BASE "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
||||
set(SRC_FILES "${SRC_BASE}/spdlog.cpp" "${SRC_BASE}/format.cc")
|
||||
add_library(spdlog STATIC ${SRC_FILES})
|
||||
target_include_directories(spdlog PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>")
|
||||
target_link_libraries(spdlog -Wl,--as-needed)
|
||||
|
Reference in New Issue
Block a user