diff options
author | Brad King <brad.king@kitware.com> | 2011-12-01 15:41:19 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-12-01 16:00:12 -0500 |
commit | fea3e84ee3670e2d6b333d844ea431cf6f193e67 (patch) | |
tree | 665473330d17647942a44d301300693b9aa75503 /Source/cmExportCommand.h | |
parent | 363d3962c476a6018c0be9fde18f347816034b97 (diff) | |
download | cmake-fea3e84ee3670e2d6b333d844ea431cf6f193e67.tar.gz |
export(): Document undefined behavior of location properties
Since the export() command needs to know the final location of a target
in the build tree we cannot allow properties affecting the location or
name of a target file to be set after the target is passed to export().
Fix a violation of this rule in the SimpleInstall test.
Diffstat (limited to 'Source/cmExportCommand.h')
-rw-r--r-- | Source/cmExportCommand.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmExportCommand.h b/Source/cmExportCommand.h index f33e9e26af..eb19d2ef49 100644 --- a/Source/cmExportCommand.h +++ b/Source/cmExportCommand.h @@ -13,6 +13,7 @@ #define cmExportCommand_h #include "cmCommand.h" +#include "cmDocumentLocationUndefined.h" class cmExportBuildFileGenerator; @@ -80,6 +81,7 @@ public: "should never be installed. " "See the install(EXPORT) command to export targets from an " "installation tree." + CM_LOCATION_UNDEFINED_BEHAVIOR("passing it to this command") "\n" " export(PACKAGE <name>)\n" "Store the current build directory in the CMake user package registry " |