summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-03-12 15:54:54 (GMT)
committerBrad King <brad.king@kitware.com>2012-03-12 15:54:54 (GMT)
commit54604ee7e997c950519623375812eb0470b8ef25 (patch)
treeb2a1ae061c9dcd1c0b9ef9e2fcc5fcec9ac44403
parentc7bdef5b48fe74f92d75f538e702257e7de1a998 (diff)
downloadCMake-54604ee7e997c950519623375812eb0470b8ef25.zip
CMake-54604ee7e997c950519623375812eb0470b8ef25.tar.gz
CMake-54604ee7e997c950519623375812eb0470b8ef25.tar.bz2
Document Fortran_MODULE_DIRECTORY as OUTPUT only (#13034)
CMake does not automatically pass the Fortran module output directory location to the module search path. Add a note to the documentation that the location must also be specified by INCLUDE_DIRECTORIES.
-rw-r--r--Source/cmTarget.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 43f2068..ffdb363 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -982,7 +982,12 @@ void cmTarget::DefineProperties(cmake *cm)
"When this property is not set the modules will be placed in the "
"build directory corresponding to the target's source directory. "
"If the variable CMAKE_Fortran_MODULE_DIRECTORY is set when a target "
- "is created its value is used to initialize this property.");
+ "is created its value is used to initialize this property."
+ "\n"
+ "Note that some compilers will automatically search the module output "
+ "directory for modules USEd during compilation but others will not. "
+ "If your sources USE modules their location must be specified by "
+ "INCLUDE_DIRECTORIES regardless of this property.");
cm->DefineProperty
("GNUtoMS", cmProperty::TARGET,