git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115935
91177308-0d34-0410-b5e6-
96231b3b80d8
check_cxx_compiler_flag("-fPIC" SUPPORTS_FPIC_FLAG)
endif()
+check_cxx_compiler_flag("-Wno-variadic-macros" SUPPORTS_NO_VARIADIC_MACROS_FLAG)
+
include(GetTargetTriple)
get_target_triple(LLVM_HOSTTRIPLE)
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