summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-08-19 14:31:16 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-08-19 14:31:25 (GMT)
commit2a4a630f3acc83cd8eed95f940b54a851f9722d6 (patch)
treea66d110f5f0d206a69823631ae0b6f591f2b97b6 /Modules
parenta82092f4a2c8f52e6710133c6351c37a976a8ccc (diff)
parentd62d0f048fdb073bab6bdb9b0055d97d0f9c8569 (diff)
downloadCMake-2a4a630f3acc83cd8eed95f940b54a851f9722d6.zip
CMake-2a4a630f3acc83cd8eed95f940b54a851f9722d6.tar.gz
CMake-2a4a630f3acc83cd8eed95f940b54a851f9722d6.tar.bz2
Merge topic 'help_check'
d62d0f048f Help: CheckFortranFunctionExists: recommend more general CheckSourceCompiles 8fddc2bb2f Help: refer to CheckSourceCompiles instead of older Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6446
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CheckCXXSymbolExists.cmake2
-rw-r--r--Modules/CheckFortranFunctionExists.cmake6
-rw-r--r--Modules/CheckSymbolExists.cmake2
3 files changed, 8 insertions, 2 deletions
diff --git a/Modules/CheckCXXSymbolExists.cmake b/Modules/CheckCXXSymbolExists.cmake
index b4da4fa..7b13c3a 100644
--- a/Modules/CheckCXXSymbolExists.cmake
+++ b/Modules/CheckCXXSymbolExists.cmake
@@ -25,7 +25,7 @@ Check if a symbol exists as a function, variable, or macro in ``C++``.
as a function or variable then the symbol must also be available for
linking. If the symbol is a type, enum value, or C++ template it will
not be recognized: consider using the :module:`CheckTypeSize`
- or :module:`CheckCXXSourceCompiles` module instead.
+ or :module:`CheckSourceCompiles` module instead.
.. note::
diff --git a/Modules/CheckFortranFunctionExists.cmake b/Modules/CheckFortranFunctionExists.cmake
index ad72e2f..8f1ca9d 100644
--- a/Modules/CheckFortranFunctionExists.cmake
+++ b/Modules/CheckFortranFunctionExists.cmake
@@ -20,6 +20,12 @@ Check if a Fortran function exists.
``<result>``
variable to store the result; will be created as an internal cache variable.
+.. note::
+
+ This command does not detect functions in Fortran modules. In general it is
+ recommended to use :module:`CheckSourceCompiles` instead to determine if a
+ Fortran function or subroutine is available.
+
The following variables may be set before calling this macro to modify
the way the check is run:
diff --git a/Modules/CheckSymbolExists.cmake b/Modules/CheckSymbolExists.cmake
index f8ca584..48ee3c4 100644
--- a/Modules/CheckSymbolExists.cmake
+++ b/Modules/CheckSymbolExists.cmake
@@ -24,7 +24,7 @@ available and assumed to work. If the header files declare the symbol
as a function or variable then the symbol must also be available for
linking (so intrinsics may not be detected).
If the symbol is a type, enum value, or intrinsic it will not be recognized
-(consider using :module:`CheckTypeSize` or :module:`CheckCSourceCompiles`).
+(consider using :module:`CheckTypeSize` or :module:`CheckSourceCompiles`).
If the check needs to be done in C++, consider using
:module:`CheckCXXSymbolExists` instead.