summaryrefslogtreecommitdiffstats
path: root/Source/cmExportCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-12-01 20:41:19 (GMT)
committerBrad King <brad.king@kitware.com>2011-12-01 21:00:12 (GMT)
commitfea3e84ee3670e2d6b333d844ea431cf6f193e67 (patch)
tree665473330d17647942a44d301300693b9aa75503 /Source/cmExportCommand.h
parent363d3962c476a6018c0be9fde18f347816034b97 (diff)
downloadCMake-fea3e84ee3670e2d6b333d844ea431cf6f193e67.zip
CMake-fea3e84ee3670e2d6b333d844ea431cf6f193e67.tar.gz
CMake-fea3e84ee3670e2d6b333d844ea431cf6f193e67.tar.bz2
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmExportCommand.h b/Source/cmExportCommand.h
index f33e9e2..eb19d2e 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 "