Use throw() when noexcept is not supported
This commit is contained in:
@@ -108,6 +108,13 @@ if (NOT FMT_VARIADIC_TEMPLATES)
|
||||
add_definitions(-DGTEST_LANG_CXX11=0)
|
||||
endif ()
|
||||
|
||||
check_cxx_source_compiles("
|
||||
void f() noexcept {}
|
||||
int main(){ f(); }" FMT_BASIC_NOEXCEPT_SUPPORT)
|
||||
if (FMT_BASIC_NOEXCEPT_SUPPORT)
|
||||
# add_definitions(-DFMT_USE_NOEXCEPT=1)
|
||||
endif ()
|
||||
|
||||
# GTest doesn't detect <tuple> with clang.
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
target_compile_definitions(gmock PUBLIC GTEST_USE_OWN_TR1_TUPLE=1)
|
||||
|
||||
Reference in New Issue
Block a user