Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
26f072df
Commit
26f072df
authored
Jan 09, 2001
by
Bill Hoffman
Browse files
BUG: look for -l and -L only at the begining of a link string
parent
d786780c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmUnixMakefileGenerator.cxx
View file @
26f072df
...
...
@@ -154,7 +154,8 @@ void cmUnixMakefileGenerator::OutputMakefile(const char* file)
std
::
vector
<
std
::
string
>&
libdirs
=
m_Makefile
->
GetLinkDirectories
();
for
(
j
=
libdirs
.
begin
();
j
!=
libdirs
.
end
();
++
j
)
{
if
((
*
j
).
find
(
"-L"
)
==
std
::
string
::
npos
std
::
string
::
size_type
pos
=
(
*
j
).
find
(
"-L"
);
if
((
pos
==
std
::
string
::
npos
||
pos
>
0
)
&&
(
*
j
).
find
(
"${"
)
==
std
::
string
::
npos
)
{
linkLibs
+=
"-L"
;
...
...
@@ -165,7 +166,8 @@ void cmUnixMakefileGenerator::OutputMakefile(const char* file)
std
::
vector
<
std
::
string
>&
libs
=
m_Makefile
->
GetLinkLibraries
();
for
(
j
=
libs
.
begin
();
j
!=
libs
.
end
();
++
j
)
{
if
((
*
j
).
find
(
"-l"
)
==
std
::
string
::
npos
std
::
string
::
size_type
pos
=
(
*
j
).
find
(
"-l"
);
if
((
pos
==
std
::
string
::
npos
||
pos
>
0
)
&&
(
*
j
).
find
(
"${"
)
==
std
::
string
::
npos
)
{
linkLibs
+=
"-l"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment