aboutsummaryrefslogtreecommitdiff
path: root/build2/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-26 07:34:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-26 07:34:15 +0200
commit8e0e8edb727a5367d991880b033eb13060f4c8eb (patch)
tree75916dbef9b7a0dc6ef0fa939b9f748fc353d5cc /build2/cc
parent113c43a42d20073428d46c04a1aa1cb305ea12d7 (diff)
Make target types project-wide
Diffstat (limited to 'build2/cc')
-rw-r--r--build2/cc/module.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/build2/cc/module.cxx b/build2/cc/module.cxx
index 064d954..bd853cc 100644
--- a/build2/cc/module.cxx
+++ b/build2/cc/module.cxx
@@ -642,13 +642,11 @@ namespace build2
{
using namespace install;
- auto& tts (rs.target_types);
+ rs.insert_target_type (x_src);
- tts.insert (x_src);
-
- auto insert_hdr = [&rs, &tts, install_loaded] (const target_type& tt)
+ auto insert_hdr = [&rs, install_loaded] (const target_type& tt)
{
- tts.insert (tt);
+ rs.insert_target_type (tt);
// Install headers into install.include.
//
@@ -666,8 +664,8 @@ namespace build2
if (*x_hdr != &h::static_type)
insert_hdr (h::static_type);
- tts.insert<pca> ();
- tts.insert<pcs> ();
+ rs.insert_target_type<pca> ();
+ rs.insert_target_type<pcs> ();
if (install_loaded)
install_path<pc> (rs, dir_path ("pkgconfig"));