'Missing C++20 headers on Ubuntu 20.04 with Clang 13

I have installed clang-13, but when I try to compile a program that uses C++20 headers, I get missing header errors.

#include <numeric>  
#include <numbers> // missing

It seems that CMake uses the system headers (from the old GCC headers shipped with ubuntu). How do I convince it to use the Clang's headers instead?

Numbers header is part of C++20 https://en.cppreference.com/w/cpp/header/numbers



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source