mirror of
https://github.com/build-cpp/cmkr
synced 2026-06-08 13:22:55 +00:00
957 B
957 B
layout, title, permalink, parent, nav_order
| layout | title | permalink | parent | nav_order |
|---|---|---|---|---|
| default | Changing C++ standard | /examples/cxx-standard | Examples | 5 |
Changing C++ standard
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(example PRIVATE cxx_std_11). For more information on available C/C++ standards and features see cmake-compile-features(7).
This page was automatically generated from tests/cxx-standard/cmake.toml.