diff options
Diffstat (limited to 'build2/config/utility.ixx')
-rw-r--r-- | build2/config/utility.ixx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/build2/config/utility.ixx b/build2/config/utility.ixx new file mode 100644 index 0000000..b665248 --- /dev/null +++ b/build2/config/utility.ixx @@ -0,0 +1,17 @@ +// file : build2/config/utility.ixx -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +namespace build2 +{ + namespace config + { + template <typename T> + inline void + append_options (cstrings& args, T& s, const char* var) + { + if (auto l = s[var]) + append_options (args, as<strings> (*l)); + } + } +} |