[llvm-commits] [llvm] r121127 - /llvm/trunk/unittests/CMakeLists.txt
Frits van Bommel
fvbommel at gmail.com
Tue Dec 7 02:22:07 PST 2010
Author: fvbommel
Date: Tue Dec 7 04:22:07 2010
New Revision: 121127
URL: http://llvm.org/viewvc/llvm-project?rev=121127&view=rev
Log:
CMake: Fix warning in gtest header used by unit tests.
Modified:
llvm/trunk/unittests/CMakeLists.txt
Modified: llvm/trunk/unittests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/CMakeLists.txt?rev=121127&r1=121126&r2=121127&view=diff
==============================================================================
--- llvm/trunk/unittests/CMakeLists.txt (original)
+++ llvm/trunk/unittests/CMakeLists.txt Tue Dec 7 04:22:07 2010
@@ -22,6 +22,10 @@
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
More information about the llvm-commits
mailing list