summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentVariables.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-11-12 14:03:49 (GMT)
committerBrad King <brad.king@kitware.com>2010-11-12 14:03:49 (GMT)
commit34e1ac2489778a854c3ffaa9c141a9a70416a47e (patch)
treec29398abef7b2d7bb6ac25396838b50f31a10495 /Source/cmDocumentVariables.cxx
parent3c245ab2baa159ede1957c3d6ea0d8597f8b67e7 (diff)
downloadCMake-34e1ac2489778a854c3ffaa9c141a9a70416a47e.zip
CMake-34e1ac2489778a854c3ffaa9c141a9a70416a47e.tar.gz
CMake-34e1ac2489778a854c3ffaa9c141a9a70416a47e.tar.bz2
Create Fortran info variables for .mod behavior
Define CMAKE_Fortran_MODDIR_DEFAULT and CMAKE_Fortran_MODOUT_FLAG variables to help some Fortran compilers generate .mod files in the current working directory.
Diffstat (limited to 'Source/cmDocumentVariables.cxx')
-rw-r--r--Source/cmDocumentVariables.cxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/Source/cmDocumentVariables.cxx b/Source/cmDocumentVariables.cxx
index a877680..a69bb8f 100644
--- a/Source/cmDocumentVariables.cxx
+++ b/Source/cmDocumentVariables.cxx
@@ -1336,6 +1336,29 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
"this variable is defined to 1.",
false,"Variables for Languages");
+ cm->DefineProperty(
+ "CMAKE_Fortran_MODDIR_FLAG", cmProperty::VARIABLE,
+ "Fortran flag for module output directory.",
+ "This stores the flag needed to pass the value of the "
+ "Fortran_MODULE_DIRECTORY target property to the compiler.",
+ false,"Variables for Languages");
+
+ cm->DefineProperty(
+ "CMAKE_Fortran_MODDIR_DEFAULT", cmProperty::VARIABLE,
+ "Fortran default module output directory.",
+ "Most Fortran compilers write .mod files to the current working "
+ "directory. "
+ "For those that do not, this is set to \".\" and used when the "
+ "Fortran_MODULE_DIRECTORY target property is not set.",
+ false,"Variables for Languages");
+
+ cm->DefineProperty(
+ "CMAKE_Fortran_MODOUT_FLAG", cmProperty::VARIABLE,
+ "Fortran flag to enable module output.",
+ "Most Fortran compilers write .mod files out by default. "
+ "For others, this stores the flag needed to enable module output.",
+ false,"Variables for Languages");
+
// variables that are used by cmake but not to be documented
cm->DefineProperty("CMAKE_MATCH_0", cmProperty::VARIABLE,0,0);
cm->DefineProperty("CMAKE_MATCH_1", cmProperty::VARIABLE,0,0);