|
|
@ -143,7 +143,9 @@ 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)
|
|
|
|
target_include_directories(spdlog PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>"
|
|
|
|
target_include_directories(spdlog PRIVATE "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>"
|
|
|
|
|
|
|
|
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
|
|
|
|
|
|
|
|
target_include_directories(spdlog SYSTEM INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>"
|
|
|
|
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
|
|
|
|
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
|
|
|
|
target_link_libraries(spdlog PUBLIC Threads::Threads)
|
|
|
|
target_link_libraries(spdlog PUBLIC Threads::Threads)
|
|
|
|
spdlog_enable_warnings(spdlog)
|
|
|
|
spdlog_enable_warnings(spdlog)
|
|
|
@ -162,7 +164,7 @@ endif()
|
|
|
|
add_library(spdlog_header_only INTERFACE)
|
|
|
|
add_library(spdlog_header_only INTERFACE)
|
|
|
|
add_library(spdlog::spdlog_header_only ALIAS spdlog_header_only)
|
|
|
|
add_library(spdlog::spdlog_header_only ALIAS spdlog_header_only)
|
|
|
|
|
|
|
|
|
|
|
|
target_include_directories(spdlog_header_only INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>"
|
|
|
|
target_include_directories(spdlog_header_only SYSTEM INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>"
|
|
|
|
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
|
|
|
|
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
|
|
|
|
target_link_libraries(spdlog_header_only INTERFACE Threads::Threads)
|
|
|
|
target_link_libraries(spdlog_header_only INTERFACE Threads::Threads)
|
|
|
|
|
|
|
|
|
|
|
|