From 7deea3d2242a2a30b2d25eab348cd00aea0194d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Fri, 21 Jun 2024 07:56:31 +0200 Subject: [PATCH] Add compile definition to make spdlog use std::format. (#29) --- 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)