From 1bba22667e52f00c0ec3c1c7d708d9abc1d9915b Mon Sep 17 00:00:00 2001 From: vitaut Date: Wed, 19 Aug 2015 07:32:48 -0700 Subject: [PATCH] Fix build on CMake 2.6 --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e7348724..843330c9 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -30,7 +30,7 @@ check_cxx_source_compiles(" int main() {}" FMT_INITIALIZER_LIST) if (NOT FMT_VARIADIC_TEMPLATES OR NOT FMT_INITIALIZER_LIST) - target_compile_definitions(gmock PUBLIC GTEST_LANG_CXX11=0) + add_definitions(-DGTEST_LANG_CXX11=0) endif () # Workaround a bug in implementation of variadic templates in MSVC11.