Commit 906749a4 by Eric Committed by Dominic Hamon

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.
parent 296ec569
...@@ -23,6 +23,11 @@ macro(build_external_gtest) ...@@ -23,6 +23,11 @@ macro(build_external_gtest)
if ("${GTEST_BUILD_TYPE}" STREQUAL "COVERAGE") if ("${GTEST_BUILD_TYPE}" STREQUAL "COVERAGE")
set(GTEST_BUILD_TYPE "DEBUG") set(GTEST_BUILD_TYPE "DEBUG")
endif() 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) split_list(GTEST_FLAGS)
ExternalProject_Add(googletest ExternalProject_Add(googletest
EXCLUDE_FROM_ALL ON EXCLUDE_FROM_ALL ON
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment