Add compile definition to make spdlog use std::format.

This commit is contained in:
Mikaël Capelle
2024-06-15 11:24:50 +02:00
parent c708d28f22
commit 61956d6271
+1
View File
@@ -275,6 +275,7 @@ function(mo2_find_spdlog)
mo2_required_variable(NAME SPDLOG_ROOT TYPE PATH)
add_library(mo2-spdlog INTERFACE)
target_compile_definitions(mo2-spdlog INTERFACE SPDLOG_USE_STD_FORMAT)
target_include_directories(mo2-spdlog INTERFACE ${SPDLOG_ROOT}/include)
add_library(mo2::spdlog ALIAS mo2-spdlog)