TestCXXAcceptsFlag — CMake 3.3.1 Documentation

### Navigation

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