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