mirror of
https://github.com/reactos/CMake.git
synced 2024-11-26 04:50:24 +00:00
ENH: Add support for -pthread
This commit is contained in:
parent
1f3106c1b0
commit
f5559b0ec8
@ -583,7 +583,7 @@ void cmLocalUnixMakefileGenerator::OutputLinkLibraries(std::ostream& fout,
|
||||
// if a variable expands to nothing.
|
||||
if (lib->first.size() == 0) continue;
|
||||
// if it is a full path break it into -L and -l
|
||||
cmsys::RegularExpression reg("([ \t]*\\-l)|([ \t]*\\-framework)|(\\${)");
|
||||
cmsys::RegularExpression reg("([ \t]*\\-l)|([ \t]*\\-framework)|(\\${)|([ \t]*\\-pthread)");
|
||||
if(lib->first.find('/') != std::string::npos
|
||||
&& !reg.find(lib->first))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user