TestCXXAcceptsFlag: Sync documentation

- Added intro code block showing how to use this module.
- Renamed "macros" to "commands".
This commit is contained in:
Peter Kokot
2025-08-09 03:20:20 +02:00
parent ead2855f2c
commit b1ec2b36a8

View File

@@ -12,11 +12,19 @@ TestCXXAcceptsFlag
:module:`CheckCompilerFlag` module is also available for checking flags across
multiple languages.
This module provides a macro to test whether the C++ (CXX) compiler supports
This module provides a command to test whether the C++ (CXX) compiler supports
specific flags.
Macros
^^^^^^
Load this module in a CMake project with:
.. code-block:: cmake
include(TestCXXAcceptsFlag)
Commands
^^^^^^^^
This module provides the following command:
.. command:: check_cxx_accepts_flag