// file : build2/cxx/utility.cxx -*- C++ -*- // copyright : Copyright (c) 2014-2016 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file #include #include using namespace std; namespace build2 { namespace cxx { void append_lib_options (cstrings& args, target& l, const char* var) { using namespace bin; for (target* t: l.prerequisite_targets) { if (t->is_a () || t->is_a () || t->is_a ()) append_lib_options (args, *t, var); } append_options (args, l, var); } } }