C++ standard versions

How can I set the C++ language version? Cursor seems to not know about C++23 features out of the box.