mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 00:00:39 -05:00
OS X: Link with all framework search paths, not just the last
Refactoring in commit 8d674e78 (Ninja: move -LIBPATH behind -link
option, 2012-09-26) accidentally added code that overwrites the
framework search path flags on each iteration instead of appending.
Change '=' to '+=' to fix it. This affects Makefile and Ninja
generators.
This commit is contained in:
@@ -1708,7 +1708,7 @@ void cmLocalGenerator::OutputLinkLibraries(std::string& linkLibraries,
|
|||||||
for(std::vector<std::string>::const_iterator fdi = fwDirs.begin();
|
for(std::vector<std::string>::const_iterator fdi = fwDirs.begin();
|
||||||
fdi != fwDirs.end(); ++fdi)
|
fdi != fwDirs.end(); ++fdi)
|
||||||
{
|
{
|
||||||
frameworkPath = " -F";
|
frameworkPath += "-F";
|
||||||
frameworkPath += this->Convert(fdi->c_str(), NONE, SHELL, false);
|
frameworkPath += this->Convert(fdi->c_str(), NONE, SHELL, false);
|
||||||
frameworkPath += " ";
|
frameworkPath += " ";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user