]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use <version> header for C++20 feature checks 14921/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 20 Mar 2023 12:40:07 +0000 (08:40 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 20 Mar 2023 12:40:57 +0000 (08:40 -0400)
cmake/checks/check_01_cxx_features.cmake

index b6b9a0b28a0300f17f03d803dac250b2c6635b55..1fa2401dbc0013ce7871d22fe55ff8a2333d9dcb 100644 (file)
@@ -70,8 +70,7 @@ macro(_test_cxx20_support)
   # Beyond this, check for some features we actually need.
   CHECK_CXX_SOURCE_COMPILES(
     "
-    #include <cmath>
-    #include <ranges>
+    #include <version>
 
     #if __cplusplus < 201709L && !defined(_MSC_VER) && !defined(__INTEL_COMPILER)
     #  error \"insufficient support for C++20\"

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.