cmake/Source/cmAddLinkOptionsCommand.cxx

17 lines
492 B
C++
Raw Normal View History

2018-10-28 12:09:07 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmAddLinkOptionsCommand.h"
2020-02-01 23:06:01 +01:00
#include "cmExecutionStatus.h"
2018-10-28 12:09:07 +01:00
#include "cmMakefile.h"
2020-02-01 23:06:01 +01:00
bool cmAddLinkOptionsCommand(std::vector<std::string> const& args,
cmExecutionStatus& status)
2018-10-28 12:09:07 +01:00
{
2020-02-01 23:06:01 +01:00
cmMakefile& mf = status.GetMakefile();
2018-10-28 12:09:07 +01:00
for (std::string const& i : args) {
2020-02-01 23:06:01 +01:00
mf.AddLinkOption(i);
2018-10-28 12:09:07 +01:00
}
return true;
}