StaConfig.hh pass HAVE_CXX_STD_FORMAT

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2026-03-24 12:22:20 -07:00
parent f4048cdf3e
commit c38762185c
2 changed files with 3 additions and 4 deletions

View File

@ -35,10 +35,7 @@
#include <zlib.h>
#endif
// std::format is not supported in GCC 11 (e.g. Ubuntu 22.04).
// Use fmt library as fallback when __cpp_lib_format is not defined.
#if defined(__cpp_lib_format) && __cpp_lib_format >= 201907L
#if HAVE_CXX_STD_FORMAT
#include <format>
namespace sta {

View File

@ -6,4 +6,6 @@
#cmakedefine ZLIB_FOUND
#cmakedefine01 HAVE_CXX_STD_FORMAT
#define TCL_READLINE ${TCL_READLINE}