From 70205edd6e1ece9658676a0d1823abfc6f7baa98 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 18 Sep 2014 09:29:51 -0700 Subject: [PATCH] Fix build with ancient CMake --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9200b235..ea4d245c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,7 +93,7 @@ check_cxx_source_compiles(" struct S { typedef typename S::type type; }; int main() {}" FMT_VARIADIC_TEMPLATES) if (NOT FMT_VARIADIC_TEMPLATES) - target_compile_definitions(gmock PUBLIC GTEST_LANG_CXX11=0) + add_definitions(-DGTEST_LANG_CXX11=0) endif () # GTest doesn't detect with clang.