diff options
author | Brad King <brad.king@kitware.com> | 2013-12-04 13:33:36 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-12-04 13:33:36 (GMT) |
commit | a5c3f059ff353cda0aa598921b8c38fda587156f (patch) | |
tree | a48425e1861aef0738c19fdef0500e17b7d6e4d8 /Source | |
parent | f1ec923d1ad0fdc38be33bb4e47a24c59255ddf7 (diff) | |
parent | 1cd1430b1fb0df91ff97d4ba3f360cdee0f56ce2 (diff) | |
download | CMake-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.cxx | 8 |
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() |