Adds -Wno-maybe-uninitialized to gtest target

develop
Josh Cooper 2022-11-11 15:54:08 -08:00
parent e1f9a95d4f
commit 32b030e348
1 changed files with 2 additions and 1 deletions

@ -4,7 +4,8 @@ add_subdirectory(lua)
add_subdirectory(md5) add_subdirectory(md5)
add_subdirectory(protobuf) add_subdirectory(protobuf)
if(BUILD_TESTING) if(BUILD_TESTING)
add_subdirectory(googletest) add_subdirectory(googletest EXCLUDE_FROM_ALL)
set_target_properties(gtest PROPERTIES COMPILE_FLAGS "-Wno-maybe-uninitialized")
endif() endif()
# Don't build tinyxml if it's being externally linked against. # Don't build tinyxml if it's being externally linked against.