diff options
author | Brad King <brad.king@kitware.com> | 2015-07-22 15:04:32 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-07-22 15:04:32 (GMT) |
commit | e00e8713de13570b8ca41291c0a863a8be00686c (patch) | |
tree | 9c9100fc6cb1c07ca0250421c9f812fb16c3beb9 /Source | |
parent | 4c3d431210d8c30b4b6fc67f75af73406dd396fa (diff) | |
parent | 7e9f908ef54a3c2fe42ae8f9376c77e5bc988a9a (diff) | |
download | CMake-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.cxx | 6 |
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 { |