Fix GTest workaround on MSVC

This commit is contained in:
Eric Fiselier 2018-02-12 18:43:32 -07:00
parent 906749a48e
commit 562f9d256d

View File

@ -27,7 +27,9 @@ macro(build_external_gtest)
# -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")
if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
list(APPEND GTEST_FLAGS "-Wno-unused-function")
endif()
split_list(GTEST_FLAGS)
ExternalProject_Add(googletest
EXCLUDE_FROM_ALL ON