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
Bill Hoffman
CMake
Commits
6c02f62f
Commit
6c02f62f
authored
Oct 06, 2015
by
Stephen Kelly
Browse files
Remove now-unused directory setters.
parent
360e4e1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/cmMakefile.cxx
View file @
6c02f62f
...
...
@@ -1784,26 +1784,11 @@ void cmMakefile::AddSubDirectory(const std::string& srcPath,
}
}
void
cmMakefile
::
SetCurrentSourceDirectory
(
const
std
::
string
&
dir
)
{
this
->
StateSnapshot
.
GetDirectory
().
SetCurrentSource
(
dir
);
this
->
AddDefinition
(
"CMAKE_CURRENT_SOURCE_DIR"
,
this
->
StateSnapshot
.
GetDirectory
().
GetCurrentSource
());
}
const
char
*
cmMakefile
::
GetCurrentSourceDirectory
()
const
{
return
this
->
StateSnapshot
.
GetDirectory
().
GetCurrentSource
();
}
void
cmMakefile
::
SetCurrentBinaryDirectory
(
const
std
::
string
&
dir
)
{
this
->
StateSnapshot
.
GetDirectory
().
SetCurrentBinary
(
dir
);
const
char
*
binDir
=
this
->
StateSnapshot
.
GetDirectory
().
GetCurrentBinary
();
cmSystemTools
::
MakeDirectory
(
binDir
);
this
->
AddDefinition
(
"CMAKE_CURRENT_BINARY_DIR"
,
binDir
);
}
const
char
*
cmMakefile
::
GetCurrentBinaryDirectory
()
const
{
return
this
->
StateSnapshot
.
GetDirectory
().
GetCurrentBinary
();
...
...
Source/cmMakefile.h
View file @
6c02f62f
...
...
@@ -353,9 +353,7 @@ public:
*/
void
SetArgcArgv
(
const
std
::
vector
<
std
::
string
>&
args
);
void
SetCurrentSourceDirectory
(
const
std
::
string
&
dir
);
const
char
*
GetCurrentSourceDirectory
()
const
;
void
SetCurrentBinaryDirectory
(
const
std
::
string
&
dir
);
const
char
*
GetCurrentBinaryDirectory
()
const
;
//@}
...
...
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