diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-08-06 21:10:04 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-08-07 08:16:32 (GMT) |
commit | 9ba0bf60c6a1dc0904c40575efd69bba580b0902 (patch) | |
tree | 1e16db46ba7409495923d29efb1c541f4e35eb24 /Source/cmAddLinkOptionsCommand.cxx | |
parent | 52d9cd624fc0da9b26fd677d92e67dd033603337 (diff) | |
download | CMake-9ba0bf60c6a1dc0904c40575efd69bba580b0902.zip CMake-9ba0bf60c6a1dc0904c40575efd69bba580b0902.tar.gz CMake-9ba0bf60c6a1dc0904c40575efd69bba580b0902.tar.bz2 |
cmA*Command: Turn into free functions
Ref: #19499
Diffstat (limited to 'Source/cmAddLinkOptionsCommand.cxx')
-rw-r--r-- | Source/cmAddLinkOptionsCommand.cxx | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Source/cmAddLinkOptionsCommand.cxx b/Source/cmAddLinkOptionsCommand.cxx index 10ebd12..7ed31bd 100644 --- a/Source/cmAddLinkOptionsCommand.cxx +++ b/Source/cmAddLinkOptionsCommand.cxx @@ -2,19 +2,15 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmAddLinkOptionsCommand.h" +#include "cmExecutionStatus.h" #include "cmMakefile.h" -class cmExecutionStatus; - -bool cmAddLinkOptionsCommand::InitialPass(std::vector<std::string> const& args, - cmExecutionStatus&) +bool cmAddLinkOptionsCommand(std::vector<std::string> const& args, + cmExecutionStatus& status) { - if (args.empty()) { - return true; - } - + cmMakefile& mf = status.GetMakefile(); for (std::string const& i : args) { - this->Makefile->AddLinkOption(i); + mf.AddLinkOption(i); } return true; } |