From dd0120c189304aafa2fcf8760aa828611ff68668 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 2 May 2014 08:13:17 -0700 Subject: [PATCH] Use gtest's own tuple with clang. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3da1a85c..d995c31b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 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)