From d324b4b2bcbd9624eb45349b69288a5750743631 Mon Sep 17 00:00:00 2001 From: Alexey Ochapov Date: Mon, 13 Dec 2021 02:18:19 +0300 Subject: [PATCH] remove incorrect C++20 check from test/CMakeLists.txt It disables entire branch of tests declaration unconditionally because CXX_STANDARD is not defined there. But even we use CMAKE_CXX_STANDARD here, these tests should not be disabled with standard >= C++20. --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7fa063dda245..c75c4f28389e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -137,7 +137,7 @@ endif () message(STATUS "FMT_PEDANTIC: ${FMT_PEDANTIC}") -if (FMT_PEDANTIC AND CXX_STANDARD LESS 20) +if (FMT_PEDANTIC) # Test that the library can be compiled with exceptions disabled. # -fno-exception is broken in icc: https://github.com/fmtlib/fmt/issues/822. if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "Intel")