Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
CMake
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Cristian Adam
CMake
Commits
360d4155
Commit
360d4155
authored
Jan 05, 2017
by
Daniel Pfeifer
Committed by
wahikihiki
Jul 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmLoadCommandCommand: Port away from FinalPass
parent
316e40ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
19 deletions
+5
-19
Source/cmLoadCommandCommand.cxx
Source/cmLoadCommandCommand.cxx
+5
-19
No files found.
Source/cmLoadCommandCommand.cxx
View file @
360d4155
...
...
@@ -126,18 +126,6 @@ public:
bool
InitialPass
(
std
::
vector
<
std
::
string
>
const
&
args
,
cmExecutionStatus
&
)
override
;
/**
* This is called at the end after all the information
* specified by the command is accumulated. Most commands do
* not implement this method. At this point, reading and
* writing to the cache can be done.
*/
void
FinalPass
()
override
;
bool
HasFinalPass
()
const
override
{
return
this
->
Impl
->
FinalPass
!=
nullptr
;
}
private:
std
::
shared_ptr
<
LoadedCommandImpl
>
Impl
;
};
...
...
@@ -168,6 +156,11 @@ bool cmLoadedCommand::InitialPass(std::vector<std::string> const& args,
cmFreeArguments
(
argc
,
argv
);
if
(
result
)
{
if
(
this
->
Impl
->
FinalPass
)
{
auto
impl
=
this
->
Impl
;
this
->
Makefile
->
AddFinalAction
(
[
impl
](
cmMakefile
&
makefile
)
{
impl
->
DoFinalPass
(
&
makefile
);
});
}
return
true
;
}
...
...
@@ -178,13 +171,6 @@ bool cmLoadedCommand::InitialPass(std::vector<std::string> const& args,
return
false
;
}
void
cmLoadedCommand
::
FinalPass
()
{
if
(
this
->
Impl
->
FinalPass
)
{
this
->
Impl
->
DoFinalPass
(
this
->
Makefile
);
}
}
}
// namespace
// cmLoadCommandCommand
...
...
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