mirror of
https://github.com/google/benchmark.git
synced 2025-04-17 23:12:30 +08:00
Work around Gtest build failure caused by -Werror=unused-function. (#529)
We're propagating extra warning flags to the gtest build, which can cause it to fail. This patch prevents passing "-Wextra" to gtest, since the library itself doesn't test with that flag.
This commit is contained in:
parent
296ec5693e
commit
906749a48e
@ -23,6 +23,11 @@ macro(build_external_gtest)
|
||||
if ("${GTEST_BUILD_TYPE}" STREQUAL "COVERAGE")
|
||||
set(GTEST_BUILD_TYPE "DEBUG")
|
||||
endif()
|
||||
# FIXME: Since 10/Feb/2017 the googletest trunk has had a bug where
|
||||
# -Werror=unused-function fires during the build on OS X. This is a temporary
|
||||
# workaround to keep our travis bots from failing. It should be removed
|
||||
# once gtest is fixed.
|
||||
list(APPEND GTEST_FLAGS "-Wno-unused-function")
|
||||
split_list(GTEST_FLAGS)
|
||||
ExternalProject_Add(googletest
|
||||
EXCLUDE_FROM_ALL ON
|
||||
|
Loading…
Reference in New Issue
Block a user