Use gtest's own tuple with clang.

This commit is contained in:
Victor Zverovich 2014-05-02 08:13:17 -07:00
parent f9eb0b8ba5
commit dd0120c189

View File

@ -55,6 +55,11 @@ add_subdirectory(doc)
# pre-compiled copy of Google Test (for example, into /usr/local)?"
# at http://code.google.com/p/googletest/wiki/FAQ for more details.
# GTest doesn't detect <tuple> with clang.
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_definitions(-DGTEST_USE_OWN_TR1_TUPLE=1)
endif ()
include_directories(gtest/include)
add_subdirectory(gtest)