summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-12-04 13:33:36 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-12-04 13:33:36 (GMT)
commita5c3f059ff353cda0aa598921b8c38fda587156f (patch)
treea48425e1861aef0738c19fdef0500e17b7d6e4d8 /Source
parentf1ec923d1ad0fdc38be33bb4e47a24c59255ddf7 (diff)
parent1cd1430b1fb0df91ff97d4ba3f360cdee0f56ce2 (diff)
downloadCMake-a5c3f059ff353cda0aa598921b8c38fda587156f.zip
CMake-a5c3f059ff353cda0aa598921b8c38fda587156f.tar.gz
CMake-a5c3f059ff353cda0aa598921b8c38fda587156f.tar.bz2
Merge topic 'fix-export-segfault'
1cd1430 export(): Check targets exist at configure-time (#14608)
Diffstat (limited to 'Source')
-rw-r--r--Source/cmExportCommand.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmExportCommand.cxx b/Source/cmExportCommand.cxx
index 86ddc3f..3f6bc2e 100644
--- a/Source/cmExportCommand.cxx
+++ b/Source/cmExportCommand.cxx
@@ -135,6 +135,14 @@ bool cmExportCommand
return false;
}
}
+ else
+ {
+ cmOStringStream e;
+ e << "given target \"" << *currentTarget
+ << "\" which is not built by this project.";
+ this->SetError(e.str().c_str());
+ return false;
+ }
}
cmGlobalGenerator *gg = this->Makefile->GetLocalGenerator()