CMake: Fix warning in gtest header used by unit tests.

llvm-svn: 121127
This commit is contained in:
Frits van Bommel 2010-12-07 10:22:07 +00:00
parent c673a6e93e
commit 716f34c6fb
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ if (NOT LLVM_ENABLE_THREADS)
add_definitions(-DGTEST_HAS_PTHREAD=0)
endif()
if(SUPPORTS_NO_VARIADIC_MACROS_FLAG)
add_definitions("-Wno-variadic-macros")
endif()
set(LLVM_LINK_COMPONENTS
jit
interpreter