mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 10:31:34 +08:00
Minore cmake fix
This commit is contained in:
parent
8b4eedb594
commit
ee0fdf016a
@ -63,7 +63,7 @@ if(SPDLOG_STATIC_LIB)
|
||||
set(SRC_FILES "${SRC_BASE}/spdlog.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)
|
||||
target_link_libraries(spdlog)
|
||||
else()
|
||||
add_library(spdlog INTERFACE)
|
||||
target_include_directories(spdlog INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>")
|
||||
|
Loading…
Reference in New Issue
Block a user