### Navigation

- index
- next |
- previous |
- CMake »
- 3.2.3 Documentation »
- cmake-modules(7) »

# TestCXXAcceptsFlag

Deprecated. See `CheckCXXCompilerFlag`.

Check if the CXX compiler accepts a flag.

    CHECK_CXX_ACCEPTS_FLAG(<flags> <variable>)

`<flags>`
  the flags to try
`<variable>`
  variable to store the result

### Navigation

- index
- next |
- previous |
- CMake »
- 3.2.3 Documentation »
- cmake-modules(7) »