From 41cad5bba8a718a0403c0578660c60e81c9f46e4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 27 Jun 2016 16:59:09 +0200 Subject: Add config.bin.target var/hint, use to decide libso{} install mode Normally the user doesn't need to specify config.bin.target explicitly since the cxx module will hint it. We now also have the whole set of target's components: bin.target.{cpu,vendor,system,version,class} --- build2/install/utility | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/install') diff --git a/build2/install/utility b/build2/install/utility index 1abed27..a50ab9b 100644 --- a/build2/install/utility +++ b/build2/install/utility @@ -19,7 +19,7 @@ namespace build2 inline void install_path (const target_type& tt, scope& s, dir_path d) { - auto r (s.target_vars[tt]["*"].assign ("install")); + auto r (s.target_vars[tt]["*"].insert ("install")); if (r.second) // Already set by the user? r.first.get () = move (d); } @@ -34,7 +34,7 @@ namespace build2 inline void install_mode (const target_type& tt, scope& s, string m) { - auto r (s.target_vars[tt]["*"].assign ("install.mode")); + auto r (s.target_vars[tt]["*"].insert ("install.mode")); if (r.second) // Already set by the user? r.first.get () = move (m); } -- cgit v1.1