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
267e0209
Commit
267e0209
authored
Oct 09, 2016
by
Stephen Kelly
Browse files
cmMakefile: Remove pointless condition
This method is never called with an empty string.
parent
009019f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmMakefile.cxx
View file @
267e0209
...
...
@@ -3970,10 +3970,8 @@ cmPolicies::PolicyStatus cmMakefile::GetPolicyStatus(
bool
cmMakefile
::
PolicyOptionalWarningEnabled
(
std
::
string
const
&
var
)
{
// Check for an explicit CMAKE_POLICY_WARNING_CMP<NNNN> setting.
if
(
!
var
.
empty
())
{
if
(
const
char
*
val
=
this
->
GetDefinition
(
var
))
{
return
cmSystemTools
::
IsOn
(
val
);
}
if
(
const
char
*
val
=
this
->
GetDefinition
(
var
))
{
return
cmSystemTools
::
IsOn
(
val
);
}
// Enable optional policy warnings with --debug-output, --trace,
// or --trace-expand.
...
...
Brad King
@brad.king
Mentioned in commit
8fe948c5
·
Oct 10, 2016
Mentioned in commit
8fe948c5
Mentioned in commit 8fe948c54cd0a7a06b5c56e8a40dab945c5a08e7
Toggle commit list
Write
Preview
Markdown
is supported
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