summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-02-04 20:37:24 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-02-04 20:37:24 (GMT)
commite3d93e22f82086043b71030ab4de65b73004983c (patch)
treee5841936bf052c464f3bdbca67b7184b08c21023 /Source
parentc8daa038c20b45a48d045487f516a1e3c5004047 (diff)
downloadCMake-e3d93e22f82086043b71030ab4de65b73004983c.zip
CMake-e3d93e22f82086043b71030ab4de65b73004983c.tar.gz
CMake-e3d93e22f82086043b71030ab4de65b73004983c.tar.bz2
BUG: add better testing for notfound
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGlobalGenerator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 774feca..581953c 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -299,7 +299,8 @@ void cmGlobalGenerator::Configure()
for(cmTarget::LinkLibraries::iterator lib = libs.begin();
lib != libs.end(); ++lib)
{
- if(cmSystemTools::IsNOTFOUND(lib->first.c_str()))
+ if(lib->first.size() > 9 &&
+ cmSystemTools::IsNOTFOUND(lib->first.c_str()))
{
std::string varName = lib->first.substr(0, lib->first.size()-9);
notFoundMap.insert(varName);
@@ -311,7 +312,8 @@ void cmGlobalGenerator::Configure()
for( std::vector<std::string>::iterator lib = incs.begin();
lib != incs.end(); ++lib)
{
- if(cmSystemTools::IsNOTFOUND(lib->c_str()))
+ if(lib->size() > 9 &&
+ cmSystemTools::IsNOTFOUND(lib->c_str()))
{
std::string varName = lib->substr(0, lib->size()-9);
notFoundMap.insert(varName);