freebsd: Always use gtest TR1 on FreeBSD (#3238)

This commit is contained in:
Teddy Reed 2017-04-28 23:24:45 -07:00 committed by GitHub
parent 84b39f5409
commit 05d020a68c

View File

@ -529,7 +529,7 @@ else()
check_include_file_cxx("tr1/tuple" HAVE_TR1_TUPLE) check_include_file_cxx("tr1/tuple" HAVE_TR1_TUPLE)
endif() endif()
if("${HAVE_TR1_TUPLE}" STREQUAL "") if(FREEBSD OR "${HAVE_TR1_TUPLE}" STREQUAL "")
set(GTEST_FLAGS "-DGTEST_USE_OWN_TR1_TUPLE=1") set(GTEST_FLAGS "-DGTEST_USE_OWN_TR1_TUPLE=1")
else() else()
set(GTEST_FLAGS "-DGTEST_USE_OWN_TR1_TUPLE=0") set(GTEST_FLAGS "-DGTEST_USE_OWN_TR1_TUPLE=0")