Help: <LANG>_STANDARD_REQUIRED
cmake_minimum_required(VERSION 3.22)
project(stdtest)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
add_executable(app main.cpp)
target_compile_features(app PRIVATE cxx_std_17)
The app
target may be compiled as C++17. Current <LANG>_STANDARD_REQUIRED
documentation describes only the interaction with <LANG>_STANDARD
in a way that makes it seem authoritative.
We should note the co-existance with compile features.