diff options
Diffstat (limited to 'Source/cmAddLinkOptionsCommand.cxx')
-rw-r--r-- | Source/cmAddLinkOptionsCommand.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmAddLinkOptionsCommand.cxx b/Source/cmAddLinkOptionsCommand.cxx new file mode 100644 index 000000000..7ed31bdbc --- /dev/null +++ b/Source/cmAddLinkOptionsCommand.cxx @@ -0,0 +1,16 @@ +/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying + file Copyright.txt or https://cmake.org/licensing for details. */ +#include "cmAddLinkOptionsCommand.h" + +#include "cmExecutionStatus.h" +#include "cmMakefile.h" + +bool cmAddLinkOptionsCommand(std::vector<std::string> const& args, + cmExecutionStatus& status) +{ + cmMakefile& mf = status.GetMakefile(); + for (std::string const& i : args) { + mf.AddLinkOption(i); + } + return true; +} |