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.