summaryrefslogtreecommitdiffstats
path: root/Source/cmLoadCommandCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-02-22 19:52:55 (GMT)
committerBrad King <brad.king@kitware.com>2005-02-22 19:52:55 (GMT)
commitec497c7a233d4196e227110604267b922da292b4 (patch)
treefaa13a90abfb3b63270aac58a7f2a1c3c2d02d85 /Source/cmLoadCommandCommand.h
parentb9b4ea0f7bbf0313d8aa5e354ee56f912969763c (diff)
downloadCMake-ec497c7a233d4196e227110604267b922da292b4.zip
CMake-ec497c7a233d4196e227110604267b922da292b4.tar.gz
CMake-ec497c7a233d4196e227110604267b922da292b4.tar.bz2
ENH: LOAD_COMMAND command will now set a variable called CMAKE_LOADED_COMMAND_<COMMAND_NAME> to the full path of the loaded module if loading was successful. Otherwise the variable is not set (will evaluate to empty string). This is useful both in testing whether loading worked and for installing loaded command modules.
Diffstat (limited to 'Source/cmLoadCommandCommand.h')
-rw-r--r--Source/cmLoadCommandCommand.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmLoadCommandCommand.h b/Source/cmLoadCommandCommand.h
index 8737da2..aae0342 100644
--- a/Source/cmLoadCommandCommand.h
+++ b/Source/cmLoadCommandCommand.h
@@ -70,7 +70,11 @@ public:
"The given locations are searched for a library whose name is "
"cmCOMMAND_NAME. If found, it is loaded as a module and the command "
"is added to the set of available CMake commands. Usually, TRY_COMPILE "
- "is used before this command to compile the module.";
+ "is used before this command to compile the module. If the command "
+ "is successfully loaded a variable named\n"
+ " CMAKE_LOADED_COMMAND_<COMMAND_NAME>\n"
+ "will be set to the full path of the module that was loaded. "
+ "Otherwise the variable will not be set.";
}
cmTypeMacro(cmLoadCommandCommand, cmCommand);