mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
clang format and SPLDOG_HEADER_ONLY macro
This commit is contained in:
@@ -60,7 +60,7 @@ message(STATUS "Static lib: " ${SPDLOG_STATIC_LIB})
|
||||
if(SPDLOG_STATIC_LIB)
|
||||
add_definitions(-DSPDLOG_STATIC_LIB)
|
||||
set(SRC_BASE "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
||||
set(SRC_FILES "${SRC_BASE}/spdlog.cpp" "${SRC_BASE}/format.cc")
|
||||
set(SRC_FILES "${SRC_BASE}/spdlog.cpp" "${SRC_BASE}/format.cpp")
|
||||
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