From 4806dd449e8e429afc05e248fdce76ee2308b815 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Thu, 13 Jun 2024 13:29:31 +0800 Subject: [PATCH] fix use INTTYPES_FORMAT=C99 --- CMakeLists.txt | 1 + third_party/gflags/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9859564..2caccbe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,6 +71,7 @@ add_subdirectory("third_party/context") add_subdirectory("third_party/zlib") add_subdirectory("third_party/fmt") add_subdirectory("third_party/googletest") +set(INTTYPES_FORMAT "C99") add_subdirectory("third_party/gflags") set(GFLAGS_USE_TARGET_NAMESPACE ON) set(gflags_DIR "${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags") diff --git a/third_party/gflags/CMakeLists.txt b/third_party/gflags/CMakeLists.txt index bee810d..5a7ebb5 100644 --- a/third_party/gflags/CMakeLists.txt +++ b/third_party/gflags/CMakeLists.txt @@ -297,7 +297,7 @@ gflags_define( "Format of integer types: \"C99\" (uint32_t), \"BSD\" (u_int32_t), \"VC7\" (__int32)" "") gflags_property(INTTYPES_FORMAT STRINGS "C99;BSD;VC7") -gflags_property(INTTYPES_FORMAT ADVANCED FALSE) +gflags_property(INTTYPES_FORMAT ADVANCED TRUE) if(NOT INTTYPES_FORMAT) set(TYPES uint32_t u_int32_t) if(MSVC)