blob: 9b52504efc8a229210aeedfede22fabfb4ffd0ae [file] [log] [blame]
Ryan Prichard7aea7e92022-01-13 17:30:17 -08001CXX_EXTENSIONS
2--------------
3
4.. versionadded:: 3.1
5
6Boolean specifying whether compiler specific extensions are requested.
7
8This property specifies whether compiler specific extensions should be
9used. For some compilers, this results in adding a flag such
10as ``-std=gnu++11`` instead of ``-std=c++11`` to the compile line. This
11property is ``ON`` by default. The basic C++ standard level is
12controlled by the :prop_tgt:`CXX_STANDARD` target property.
13
14See the :manual:`cmake-compile-features(7)` manual for information on
15compile features and a list of supported compilers.
16
17This property is initialized by the value of
18the :variable:`CMAKE_CXX_EXTENSIONS` variable if set when a target is created
19and otherwise by the value of
20:variable:`CMAKE_CXX_EXTENSIONS_DEFAULT <CMAKE_<LANG>_EXTENSIONS_DEFAULT>` (see
21:policy:`CMP0128`).