summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-01-01 20:13:41 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-01-01 20:13:41 (GMT)
commitb479c6a8a98664c19eeaef40b71850c1f5315601 (patch)
treed6bdae61666c26a6872fcc8baecc5d7cdb90ba8c /Source/cmMakefile.cxx
parent24d6ecd81cf457367c622cd166da5d49f54bf42b (diff)
downloadCMake-b479c6a8a98664c19eeaef40b71850c1f5315601.zip
CMake-b479c6a8a98664c19eeaef40b71850c1f5315601.tar.gz
CMake-b479c6a8a98664c19eeaef40b71850c1f5315601.tar.bz2
ENH: add ability to have manifest files and incremental linking with make and nmake
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index c5df4fb..306c00b 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -1020,8 +1020,12 @@ void cmMakefile::AddLinkDirectory(const char* dir)
// much bigger than 20. We cannot use a set because of order
// dependency of the link search path.
+ if(!dir)
+ {
+ return;
+ }
// remove trailing slashes
- if(dir && dir[strlen(dir)-1] == '/')
+ if(dir[strlen(dir)-1] == '/')
{
std::string newdir = dir;
newdir = newdir.substr(0, newdir.size()-1);