# Require a C++11 compiler for the target `example`. [project] name = "cxx-standard" description = "Changing C++ standard" [target.example] type = "executable" sources = ["src/main.cpp"] compile-features = ["cxx_std_11"] # This is equivalent to CMake's [target_compile_features](https://cmake.org/cmake/help/latest/command/target_compile_features.html)`(example PRIVATE cxx_std_11)`. For more information on available C/C++ standards and features see [cmake-compile-features(7)](https://cmake.org/cmake/help/latest/manual/cmake-compile-features.7.html).