summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-31 13:17:41 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-07-31 13:17:41 (GMT)
commitbd642272b9d9876277a318d3a861d5946a043c43 (patch)
tree94f060bf48247417fba7b0e9645bae0e1865860b /Source
parentc1560296db63f4021f6f9e38e3280fad13db9812 (diff)
parentb2282631f61361fe5f103fa7479073f2693eafcb (diff)
downloadCMake-bd642272b9d9876277a318d3a861d5946a043c43.zip
CMake-bd642272b9d9876277a318d3a861d5946a043c43.tar.gz
CMake-bd642272b9d9876277a318d3a861d5946a043c43.tar.bz2
Merge topic 'fix-CMP0049-extra-error'
b2282631 cmTarget: Do not mistake a preceding error for a CMP0049 failure
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTarget.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index ca24d2d..acae0b3 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -927,10 +927,13 @@ void cmTarget::AddSources(std::vector<std::string> const& srcs)
if(!(src[0] == '$' && src[1] == '<'))
{
- filename = this->ProcessSourceItemCMP0049(filename);
- if (cmSystemTools::GetErrorOccuredFlag())
+ if(!filename.empty())
{
- return;
+ filename = this->ProcessSourceItemCMP0049(filename);
+ if(filename.empty())
+ {
+ return;
+ }
}
this->Makefile->GetOrCreateSource(filename);
}
@@ -998,8 +1001,7 @@ std::string cmTarget::ProcessSourceItemCMP0049(const std::string& s)
cmSourceFile* cmTarget::AddSourceCMP0049(const std::string& s)
{
std::string src = this->ProcessSourceItemCMP0049(s);
-
- if (cmSystemTools::GetErrorOccuredFlag())
+ if(!s.empty() && src.empty())
{
return 0;
}