diff options
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index bf91751..830f8f3 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1480,7 +1480,7 @@ bool cmLocalGenerator::GetLinkerArgs(std::string& rpath, std::string& linkLibs, cmTarget& tgt, bool relink, - int minRpathSize) + unsigned int minRpathSize) { rpath = ""; // collect all the flags needed for linking libraries @@ -1658,16 +1658,14 @@ bool cmLocalGenerator::GetLinkerArgs(std::string& rpath, } } - if (rpath.size()<minRpathSize) + while (rpath.size() < minRpathSize) { if (rpath.size()==0) { rpath += runtimeFlag; } - while (rpath.size() < minRpathSize) - { - rpath += runtimeSep; - } + + rpath += runtimeSep; } return true; } |