Skip to content
GitLab
Menu
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
c8694bb5
Commit
c8694bb5
authored
Dec 31, 2002
by
Brad King
Browse files
BUG: When there are no link flags, we want an empty string, not a null pointer.
parent
b290e528
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmLocalUnixMakefileGenerator.cxx
View file @
c8694bb5
...
...
@@ -1000,12 +1000,19 @@ void cmLocalUnixMakefileGenerator::OutputStaticLibraryRule(std::ostream& fout,
{
targetSuffix
=
this
->
GetSafeDefinition
(
"CMAKE_STATIC_LIBRARY_SUFFIX"
);
}
std
::
string
linkFlags
;
const
char
*
targetLinkFlags
=
t
.
GetProperty
(
"LINK_FLAGS"
);
if
(
targetLinkFlags
)
{
linkFlags
+=
targetLinkFlags
;
linkFlags
+=
" "
;
}
this
->
OutputLibraryRule
(
fout
,
name
,
t
,
targetPrefix
,
targetSuffix
,
createRule
,
"static library"
,
t
.
GetProperty
(
"LINK_FLAGS"
));
linkFlags
.
c_str
(
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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