aboutsummaryrefslogtreecommitdiff
path: root/build/root.build
diff options
context:
space:
mode:
Diffstat (limited to 'build/root.build')
-rw-r--r--build/root.build16
1 files changed, 13 insertions, 3 deletions
diff --git a/build/root.build b/build/root.build
index ac55324..b21d615 100644
--- a/build/root.build
+++ b/build/root.build
@@ -5,6 +5,16 @@
# Load common modules that are used by subproject so that they use common
# configuration.
#
-using cxx.config
-using c.config
-using? cli.config
+using cxx
+using c
+
+# Load the cli module but only if it's available. This way a distribution
+# that includes pre-generated files can be built without installing cli.
+#
+using? cli
+
+if! $cli.configured
+{
+ define cli: file
+ cli{*}: extension = cli
+}