diff options
Diffstat (limited to 'Source/cmFindLibraryCommand.cxx')
-rw-r--r-- | Source/cmFindLibraryCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFindLibraryCommand.cxx b/Source/cmFindLibraryCommand.cxx index e7cfbeb..6f0b23a 100644 --- a/Source/cmFindLibraryCommand.cxx +++ b/Source/cmFindLibraryCommand.cxx @@ -186,7 +186,7 @@ std::string cmFindLibraryCommand::FindLibrary(const char* name) i != this->SearchPaths.end(); ++i) { std::string& p = *i; - if(p[p.size()-1] != '/') + if(p.empty() || p[p.size()-1] != '/') { p += "/"; } |