StaConfig.hh pass HAVE_CXX_STD_FORMAT
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
f4048cdf3e
commit
c38762185c
|
|
@ -35,10 +35,7 @@
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// std::format is not supported in GCC 11 (e.g. Ubuntu 22.04).
|
#if HAVE_CXX_STD_FORMAT
|
||||||
// Use fmt library as fallback when __cpp_lib_format is not defined.
|
|
||||||
|
|
||||||
#if defined(__cpp_lib_format) && __cpp_lib_format >= 201907L
|
|
||||||
#include <format>
|
#include <format>
|
||||||
|
|
||||||
namespace sta {
|
namespace sta {
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,6 @@
|
||||||
|
|
||||||
#cmakedefine ZLIB_FOUND
|
#cmakedefine ZLIB_FOUND
|
||||||
|
|
||||||
|
#cmakedefine01 HAVE_CXX_STD_FORMAT
|
||||||
|
|
||||||
#define TCL_READLINE ${TCL_READLINE}
|
#define TCL_READLINE ${TCL_READLINE}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue