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
e863496a
Commit
e863496a
authored
Feb 03, 2014
by
Brad King
💬
Committed by
Kitware Robot
Feb 03, 2014
Browse files
Merge topic 'minor-cleanups'
dcd443d4
cmTarget: Clean up the InsertCompileDefinition implementation.
parents
2e2552af
dcd443d4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/cmTarget.cxx
View file @
e863496a
...
@@ -1620,16 +1620,11 @@ void cmTarget::InsertCompileOption(const cmValueWithOrigin &entry,
...
@@ -1620,16 +1620,11 @@ void cmTarget::InsertCompileOption(const cmValueWithOrigin &entry,
}
}
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
void
cmTarget
::
InsertCompileDefinition
(
const
cmValueWithOrigin
&
entry
,
void
cmTarget
::
InsertCompileDefinition
(
const
cmValueWithOrigin
&
entry
)
bool
before
)
{
{
cmGeneratorExpression
ge
(
entry
.
Backtrace
);
cmGeneratorExpression
ge
(
entry
.
Backtrace
);
std
::
vector
<
cmTargetInternals
::
TargetPropertyEntry
*>::
iterator
position
this
->
Internal
->
CompileDefinitionsEntries
.
push_back
(
=
before
?
this
->
Internal
->
CompileDefinitionsEntries
.
begin
()
:
this
->
Internal
->
CompileDefinitionsEntries
.
end
();
this
->
Internal
->
CompileDefinitionsEntries
.
insert
(
position
,
new
cmTargetInternals
::
TargetPropertyEntry
(
ge
.
Parse
(
entry
.
Value
)));
new
cmTargetInternals
::
TargetPropertyEntry
(
ge
.
Parse
(
entry
.
Value
)));
}
}
...
...
Source/cmTarget.h
View file @
e863496a
...
@@ -531,8 +531,7 @@ public:
...
@@ -531,8 +531,7 @@ public:
bool
before
=
false
);
bool
before
=
false
);
void
InsertCompileOption
(
const
cmValueWithOrigin
&
entry
,
void
InsertCompileOption
(
const
cmValueWithOrigin
&
entry
,
bool
before
=
false
);
bool
before
=
false
);
void
InsertCompileDefinition
(
const
cmValueWithOrigin
&
entry
,
void
InsertCompileDefinition
(
const
cmValueWithOrigin
&
entry
);
bool
before
=
false
);
void
AppendBuildInterfaceIncludes
();
void
AppendBuildInterfaceIncludes
();
...
...
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