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
fe603c7d
Commit
fe603c7d
authored
Jun 08, 2015
by
Stephen Kelly
Browse files
cmGetDirectoryPropertyCommand: Move variable to the point of use.
parent
8fc53c3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmGetDirectoryPropertyCommand.cxx
View file @
fe603c7d
...
...
@@ -26,7 +26,6 @@ bool cmGetDirectoryPropertyCommand
std
::
vector
<
std
::
string
>::
const_iterator
i
=
args
.
begin
();
std
::
string
variable
=
*
i
;
++
i
;
std
::
string
output
=
""
;
// get the directory argument if there is one
cmMakefile
*
dir
=
this
->
Makefile
;
...
...
@@ -79,7 +78,7 @@ bool cmGetDirectoryPropertyCommand
"providing the name of the variable to get."
);
return
false
;
}
output
=
dir
->
GetSafeDefinition
(
*
i
);
std
::
string
output
=
dir
->
GetSafeDefinition
(
*
i
);
this
->
Makefile
->
AddDefinition
(
variable
,
output
.
c_str
());
return
true
;
}
...
...
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