summaryrefslogtreecommitdiffstats
path: root/Source/cmFindProgramCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-05-04 15:30:46 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-05-04 15:30:46 (GMT)
commitde10cfc72e51094d3a8f3a8d10f09a902330a2f3 (patch)
tree19175a07cd503bb427d1f394dc9a7d555b28246f /Source/cmFindProgramCommand.cxx
parent33e1a4a09aaedfcb869e2f4217815e09f0d3187f (diff)
downloadCMake-de10cfc72e51094d3a8f3a8d10f09a902330a2f3.zip
CMake-de10cfc72e51094d3a8f3a8d10f09a902330a2f3.tar.gz
CMake-de10cfc72e51094d3a8f3a8d10f09a902330a2f3.tar.bz2
ENH: move testing stuff to cmake from configure, good bye dashboard... :)
Diffstat (limited to 'Source/cmFindProgramCommand.cxx')
-rw-r--r--Source/cmFindProgramCommand.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmFindProgramCommand.cxx b/Source/cmFindProgramCommand.cxx
index aef1a74..ce97478 100644
--- a/Source/cmFindProgramCommand.cxx
+++ b/Source/cmFindProgramCommand.cxx
@@ -90,7 +90,10 @@ bool cmFindProgramCommand::Invoke(std::vector<std::string>& args)
m_Makefile->AddDefinition(define, result.c_str());
return true;
}
-
- return false;
+ std::string error = "Faild to find program: \"";
+ error += *i;
+ error += "\" ";
+ this->SetError(error.c_str());
+ return true;
}