mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 11:17:35 +02:00
Disable unnecessary CMake check and comment
This commit is contained in:
@ -108,12 +108,14 @@ if (NOT FMT_VARIADIC_TEMPLATES)
|
|||||||
add_definitions(-DGTEST_LANG_CXX11=0)
|
add_definitions(-DGTEST_LANG_CXX11=0)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
check_cxx_source_compiles("
|
# This is disabled at the moment because format is compiled without -std=c++11
|
||||||
void f() noexcept {}
|
# by default.
|
||||||
int main(){ f(); }" FMT_BASIC_NOEXCEPT_SUPPORT)
|
#check_cxx_source_compiles("
|
||||||
if (FMT_BASIC_NOEXCEPT_SUPPORT)
|
# void f() noexcept {}
|
||||||
# add_definitions(-DFMT_USE_NOEXCEPT=1)
|
# int main(){ f(); }" FMT_BASIC_NOEXCEPT_SUPPORT)
|
||||||
endif ()
|
#if (FMT_BASIC_NOEXCEPT_SUPPORT)
|
||||||
|
# add_definitions(-DFMT_USE_NOEXCEPT=1)
|
||||||
|
#endif ()
|
||||||
|
|
||||||
# GTest doesn't detect <tuple> with clang.
|
# GTest doesn't detect <tuple> with clang.
|
||||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||||
|
Reference in New Issue
Block a user