summaryrefslogtreecommitdiff
path: root/Modules/CheckLinkerFlag.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2020-10-24 22:48:30 +1100
committerCraig Scott <craig.scott@crascit.com>2020-10-24 22:58:42 +1100
commit95c14579f2b36e71bd217c9b03a2e20767650ecf (patch)
tree15d0db55cc06f68dc1024c7a781b16eefbf08365 /Modules/CheckLinkerFlag.cmake
parentf2a59d400e9ec2e937f6000000c2e9860e388ca7 (diff)
downloadcmake-95c14579f2b36e71bd217c9b03a2e20767650ecf.tar.gz
Help: Cleanup typos and grammar for the 3.19 release
Diffstat (limited to 'Modules/CheckLinkerFlag.cmake')
-rw-r--r--Modules/CheckLinkerFlag.cmake15
1 files changed, 6 insertions, 9 deletions
diff --git a/Modules/CheckLinkerFlag.cmake b/Modules/CheckLinkerFlag.cmake
index f56d3654b2..3c7a8286e1 100644
--- a/Modules/CheckLinkerFlag.cmake
+++ b/Modules/CheckLinkerFlag.cmake
@@ -19,15 +19,12 @@ Check that the link ``<flag>`` is accepted by the ``<lang>`` compiler without
a diagnostic. Stores the result in an internal cache entry named ``<var>``.
This command temporarily sets the ``CMAKE_REQUIRED_LINK_OPTIONS`` variable
-and calls the ``check_<lang>_source_compiles`` macro from the
-``Check<lang>SourceCompiles`` module (:module:`CheckCSourceCompiles`,
-:module:`CheckCSourceCompiles`, :module:`CheckCXXSourceCompiles`,
-:module:`CheckOBJCSourceCompiles`, :module:`CheckOBJCXXSourceCompiles` or
-:module:`CheckFortranSourceCompiles`). See documentation of these
-modules for a listing of variables that can otherwise modify the build.
-
-The underlying implementation rely on :prop_tgt:`LINK_OPTIONS` property to
-check the specified flag. The ``LINKER:`` prefix, as described in
+and calls the :command:`check_source_compiles` command from the
+:module:`CheckSourceCompiles` module. See that module's documentation
+for a listing of variables that can otherwise modify the build.
+
+The underlying implementation relies on the :prop_tgt:`LINK_OPTIONS` property
+to check the specified flag. The ``LINKER:`` prefix, as described in the
:command:`target_link_options` command, can be used as well.
A positive result from this check indicates only that the compiler did not