diff options
-rwxr-xr-x | cmake/config-ix.cmake | 2 | ||||
-rw-r--r-- | utils/unittest/CMakeLists.txt | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index cb83eab..b84fa5d 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -165,6 +165,8 @@ if( NOT WIN32 ) 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) diff --git a/utils/unittest/CMakeLists.txt b/utils/unittest/CMakeLists.txt index 7068546..4400b38 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 |