diff --git a/Modules/TestCXXAcceptsFlag.cmake b/Modules/TestCXXAcceptsFlag.cmake index a39f8b3b63..69c7bc37d3 100644 --- a/Modules/TestCXXAcceptsFlag.cmake +++ b/Modules/TestCXXAcceptsFlag.cmake @@ -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