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
3d0e95f6
Commit
3d0e95f6
authored
Oct 09, 2016
by
Stephen Kelly
Committed by
Brad King
Oct 10, 2016
Browse files
cmLocalGenerator: Extract definition retrieval out of loop
parent
2a49d86d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmLocalGenerator.cxx
View file @
3d0e95f6
...
...
@@ -1176,12 +1176,13 @@ void cmLocalGenerator::GetTargetFlags(
!
(
this
->
Makefile
->
IsOn
(
"CYGWIN"
)
||
this
->
Makefile
->
IsOn
(
"MINGW"
)))
{
std
::
vector
<
cmSourceFile
*>
sources
;
target
->
GetSourceFiles
(
sources
,
buildType
);
std
::
string
defFlag
=
this
->
Makefile
->
GetSafeDefinition
(
"CMAKE_LINK_DEF_FILE_FLAG"
);
for
(
std
::
vector
<
cmSourceFile
*>::
const_iterator
i
=
sources
.
begin
();
i
!=
sources
.
end
();
++
i
)
{
cmSourceFile
*
sf
=
*
i
;
if
(
sf
->
GetExtension
()
==
"def"
)
{
linkFlags
+=
this
->
Makefile
->
GetSafeDefinition
(
"CMAKE_LINK_DEF_FILE_FLAG"
);
linkFlags
+=
defFlag
;
linkFlags
+=
this
->
ConvertToOutputFormat
(
cmSystemTools
::
CollapseFullPath
(
sf
->
GetFullPath
()),
SHELL
);
linkFlags
+=
" "
;
...
...
Brad King
@brad.king
Mentioned in commit
8fe948c5
·
Oct 10, 2016
Mentioned in commit
8fe948c5
Mentioned in commit 8fe948c54cd0a7a06b5c56e8a40dab945c5a08e7
Toggle commit list
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