From 32b030e348be03aa1576cc2f64446e328b75f5cd Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Fri, 11 Nov 2022 15:54:08 -0800 Subject: [PATCH] Adds -Wno-maybe-uninitialized to gtest target --- depends/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/depends/CMakeLists.txt b/depends/CMakeLists.txt index 1d43fbf86..b7c47d6ca 100644 --- a/depends/CMakeLists.txt +++ b/depends/CMakeLists.txt @@ -4,7 +4,8 @@ add_subdirectory(lua) add_subdirectory(md5) add_subdirectory(protobuf) if(BUILD_TESTING) - add_subdirectory(googletest) + add_subdirectory(googletest EXCLUDE_FROM_ALL) + set_target_properties(gtest PROPERTIES COMPILE_FLAGS "-Wno-maybe-uninitialized") endif() # Don't build tinyxml if it's being externally linked against.