summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-07-22 15:04:32 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-07-22 15:04:32 (GMT)
commite00e8713de13570b8ca41291c0a863a8be00686c (patch)
tree9c9100fc6cb1c07ca0250421c9f812fb16c3beb9 /Source
parent4c3d431210d8c30b4b6fc67f75af73406dd396fa (diff)
parent7e9f908ef54a3c2fe42ae8f9376c77e5bc988a9a (diff)
downloadCMake-e00e8713de13570b8ca41291c0a863a8be00686c.zip
CMake-e00e8713de13570b8ca41291c0a863a8be00686c.tar.gz
CMake-e00e8713de13570b8ca41291c0a863a8be00686c.tar.bz2
Merge topic 'export-no-custom-target'
7e9f908e export: Reject custom target exports earlier (#15657) 3b09398a Tests: Teach RunCMake.export to enable languages only when needed
Diffstat (limited to 'Source')
-rw-r--r--Source/cmExportCommand.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmExportCommand.cxx b/Source/cmExportCommand.cxx
index 43d26f9..96ea77b 100644
--- a/Source/cmExportCommand.cxx
+++ b/Source/cmExportCommand.cxx
@@ -177,6 +177,12 @@ bool cmExportCommand
this->SetError(e.str());
return false;
}
+ if (target->GetType() == cmTarget::UTILITY)
+ {
+ this->SetError("given custom target \"" + *currentTarget
+ + "\" which may not be exported.");
+ return false;
+ }
}
else
{