TestCXXAcceptsFlag

From Get docs
Cmake/docs/3.21/module/testcxxacceptsflag


TestCXXAcceptsFlag

Deprecated since version 3.0: 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

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/module/TestCXXAcceptsFlag.html