mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 20:00:38 -06:00
TestCXXAcceptsFlag: Sync documentation
- Added intro code block showing how to use this module. - Renamed "macros" to "commands".
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user