From f77350f8fa595f633ac44842a7bbb414e26da74d Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 14 Feb 2015 06:18:19 -0800 Subject: [PATCH] Disable unnecessary CMake check and comment --- CMakeLists.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f3aead8..82843b2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -108,12 +108,14 @@ 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 () +# This is disabled at the moment because format is compiled without -std=c++11 +# by default. +#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 with clang. if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")