aboutsummaryrefslogtreecommitdiff
path: root/utils/unittest
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-10-07 18:12:54 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-10-07 18:12:54 +0000
commit1cade330affc01142f43e8c46a8e34278740ad53 (patch)
tree6001fc2784890ee331dd0cf5fd785fa3e761494d /utils/unittest
parent2c81296bc237cb26c2bb789514e331b3b5b31f79 (diff)
CMake: Fix warning in gtest.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115935 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/unittest')
-rw-r--r--utils/unittest/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/unittest/CMakeLists.txt b/utils/unittest/CMakeLists.txt
index 7068546301..4400b38234 100644
--- a/utils/unittest/CMakeLists.txt
+++ b/utils/unittest/CMakeLists.txt
@@ -20,6 +20,10 @@ if(WIN32)
add_definitions(-DGTEST_OS_WINDOWS=1)
endif()
+if(SUPPORTS_NO_VARIADIC_MACROS_FLAG)
+ add_definitions("-Wno-variadic-macros")
+endif()
+
add_llvm_library(gtest
googletest/gtest.cc
googletest/gtest-death-test.cc