From 96d28af394105827d5a94ddb0bbfdd273f5c2c2b Mon Sep 17 00:00:00 2001 From: Bailey Chittle Date: Fri, 24 Mar 2023 11:07:05 -0400 Subject: [PATCH] set string_view option instead of error for compat --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 63e8f753..5ae4c0ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,7 +106,8 @@ if(SPDLOG_USE_STD_FORMAT AND SPDLOG_FMT_EXTERNAL) endif() if(SPDLOG_USE_STD_FORMAT AND NOT SPDLOG_USE_STD_STRING_VIEW) - message(FATAL_ERROR "SPDLOG_USE_STD_FORMAT requires SPDLOG_USE_STD_STRING_VIEW") + # message(FATAL_ERROR "SPDLOG_USE_STD_FORMAT requires SPDLOG_USE_STD_STRING_VIEW") + set(SPDLOG_USE_STD_STRING_VIEW ON CACHE BOOL "" FORCE) # automatically set SPDLOG_USE_STD_STRING_VIEW instead of error endif() # misc tweakme options