From 61956d62711551c87756ed1242a35c4201ee146f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Sat, 15 Jun 2024 11:24:50 +0200 Subject: [PATCH] Add compile definition to make spdlog use std::format. --- mo2_targets.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/mo2_targets.cmake b/mo2_targets.cmake index a954288..b5fc26f 100644 --- a/mo2_targets.cmake +++ b/mo2_targets.cmake @@ -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)