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
1efca9f4
Commit
1efca9f4
authored
Oct 07, 2016
by
Stephen Kelly
Browse files
cmMakefile: Remove obsolete parameter
parent
d9b5f0a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/cmMakefile.cxx
View file @
1efca9f4
...
...
@@ -1808,8 +1808,7 @@ void cmMakefile::SetProjectName(std::string const& p)
this
->
StateSnapshot
.
SetProjectName
(
p
);
}
void
cmMakefile
::
AddGlobalLinkInformation
(
const
std
::
string
&
/* name */
,
cmTarget
&
target
)
void
cmMakefile
::
AddGlobalLinkInformation
(
cmTarget
&
target
)
{
// for these targets do not add anything
switch
(
target
.
GetType
())
{
...
...
@@ -1874,7 +1873,7 @@ cmTarget* cmMakefile::AddLibrary(const std::string& lname,
target
->
SetProperty
(
"EXCLUDE_FROM_ALL"
,
"TRUE"
);
}
target
->
AddSources
(
srcs
);
this
->
AddGlobalLinkInformation
(
lname
,
*
target
);
this
->
AddGlobalLinkInformation
(
*
target
);
return
target
;
}
...
...
@@ -1887,7 +1886,7 @@ cmTarget* cmMakefile::AddExecutable(const char* exeName,
target
->
SetProperty
(
"EXCLUDE_FROM_ALL"
,
"TRUE"
);
}
target
->
AddSources
(
srcs
);
this
->
AddGlobalLinkInformation
(
exeName
,
*
target
);
this
->
AddGlobalLinkInformation
(
*
target
);
return
target
;
}
...
...
Source/cmMakefile.h
View file @
1efca9f4
...
...
@@ -779,7 +779,7 @@ public:
protected:
// add link libraries and directories to the target
void
AddGlobalLinkInformation
(
const
std
::
string
&
name
,
cmTarget
&
target
);
void
AddGlobalLinkInformation
(
cmTarget
&
target
);
// Check for a an unused variable
void
LogUnused
(
const
char
*
reason
,
const
std
::
string
&
name
)
const
;
...
...
Brad King
💬
@brad.king
Mentioned in commit
1e6aaefd
·
Oct 10, 2016
Mentioned in commit
1e6aaefd
Mentioned in commit 1e6aaefdeebbf09eaf7fa0e9dbc6a7faa2f9132a
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