/src/CMake/Source/cmAddCompileOptionsCommand.cxx
Line | Count | Source |
1 | | /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying |
2 | | file LICENSE.rst or https://cmake.org/licensing for details. */ |
3 | | #include "cmAddCompileOptionsCommand.h" |
4 | | |
5 | | #include "cmExecutionStatus.h" |
6 | | #include "cmMakefile.h" |
7 | | |
8 | | bool cmAddCompileOptionsCommand(std::vector<std::string> const& args, |
9 | | cmExecutionStatus& status) |
10 | 0 | { |
11 | 0 | cmMakefile& mf = status.GetMakefile(); |
12 | 0 | for (std::string const& i : args) { |
13 | 0 | mf.AddCompileOption(i); |
14 | 0 | } |
15 | 0 | return true; |
16 | 0 | } |