### Navigation

- index
- next |
- previous |
- CMake »
- 3.1.2 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.1.2 Documentation »
- cmake-modules(7) »