aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/context.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/context.cxx')
-rw-r--r--libbuild2/context.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbuild2/context.cxx b/libbuild2/context.cxx
index f310426..cc0eb0b 100644
--- a/libbuild2/context.cxx
+++ b/libbuild2/context.cxx
@@ -133,10 +133,12 @@ namespace build2
//
var_import_build2 = &vp.insert<abs_dir_path> ("import.build2");
-#ifdef BUILD2_IMPORT_PATH
if (!build_installed)
+ {
+#ifdef BUILD2_IMPORT_PATH
gs.assign (var_import_build2) = abs_dir_path (BUILD2_IMPORT_PATH);
#endif
+ }
// Build system verbosity level.
//