mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 00:21:13 +00:00
Use gtest's own tuple with clang.
This commit is contained in:
parent
f9eb0b8ba5
commit
dd0120c189
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user