Skip to content

Commit c387621

Browse files
committed
StaConfig.hh pass HAVE_CXX_STD_FORMAT
Signed-off-by: James Cherry <cherry@parallaxsw.com>
1 parent f4048cd commit c387621

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

include/sta/Format.hh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535
#include <zlib.h>
3636
#endif
3737

38-
// std::format is not supported in GCC 11 (e.g. Ubuntu 22.04).
39-
// Use fmt library as fallback when __cpp_lib_format is not defined.
40-
41-
#if defined(__cpp_lib_format) && __cpp_lib_format >= 201907L
38+
#if HAVE_CXX_STD_FORMAT
4239
#include <format>
4340

4441
namespace sta {

util/StaConfig.hh.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@
66

77
#cmakedefine ZLIB_FOUND
88

9+
#cmakedefine01 HAVE_CXX_STD_FORMAT
10+
911
#define TCL_READLINE ${TCL_READLINE}

0 commit comments

Comments
 (0)