summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeAddFortranSubdirectory.cmake
diff options
context:
space:
mode:
authorJoachim Wuttke (h) <j.wuttke@fz-juelich.de>2018-11-11 21:57:13 (GMT)
committerJoachim Wuttke (h) <j.wuttke@fz-juelich.de>2018-11-11 21:57:13 (GMT)
commitb93b3b55003d4f7467569320061ae8a2b536ae97 (patch)
tree98876370c6815ee8e4dfea2f93270587f4037d21 /Modules/CMakeAddFortranSubdirectory.cmake
parent206ce3c0ba730f34444a8627d6a4f261bf60fc92 (diff)
downloadCMake-b93b3b55003d4f7467569320061ae8a2b536ae97.zip
CMake-b93b3b55003d4f7467569320061ae8a2b536ae97.tar.gz
CMake-b93b3b55003d4f7467569320061ae8a2b536ae97.tar.bz2
Help: better summary and xrefs for CMakeAddFortranSubdirectory
Diffstat (limited to 'Modules/CMakeAddFortranSubdirectory.cmake')
-rw-r--r--Modules/CMakeAddFortranSubdirectory.cmake12
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/CMakeAddFortranSubdirectory.cmake b/Modules/CMakeAddFortranSubdirectory.cmake
index 2bb3128..50b2807 100644
--- a/Modules/CMakeAddFortranSubdirectory.cmake
+++ b/Modules/CMakeAddFortranSubdirectory.cmake
@@ -5,18 +5,18 @@
CMakeAddFortranSubdirectory
---------------------------
-Use MinGW gfortran from VS if a fortran compiler is not found.
+Add a fortran-only subdirectory, find a fortran compiler, and build.
-The 'add_fortran_subdirectory' function adds a subdirectory to a
-project that contains a fortran only sub-project. The module will
+The ``cmake_add_fortran_subdirectory`` function adds a subdirectory
+to a project that contains a fortran-only subproject. The module will
check the current compiler and see if it can support fortran. If no
fortran compiler is found and the compiler is MSVC, then this module
will find the MinGW gfortran. It will then use an external project to
build with the MinGW tools. It will also create imported targets for
the libraries created. This will only work if the fortran code is
-built into a dll, so BUILD_SHARED_LIBS is turned on in the project.
-In addition the CMAKE_GNUtoMS option is set to on, so that the MS .lib
-files are created. Usage is as follows:
+built into a dll, so :variable:`BUILD_SHARED_LIBS` is turned on in
+the project. In addition the :variable:`CMAKE_GNUtoMS` option is set
+to on, so that Microsoft .lib files are created. Usage is as follows:
::