When I try to use set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 20) it won’t set the target to 20, or at least, the output doesn’t show it and CLion does not detect that the standard is C++17 and above (Try to do namespace Foo::Bar {...}).
You can try reproducing it with this on Windows 10 with VS 2019.