aboutsummaryrefslogtreecommitdiff
path: root/build/bin/target.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/bin/target.cxx')
-rw-r--r--build/bin/target.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/bin/target.cxx b/build/bin/target.cxx
index 1849533..ca198d7d 100644
--- a/build/bin/target.cxx
+++ b/build/bin/target.cxx
@@ -4,6 +4,8 @@
#include <build/bin/target>
+#include <build/bin/module>
+
using namespace std;
namespace build
@@ -131,6 +133,11 @@ namespace build
static target*
lib_factory (dir_path d, string n, const string* e)
{
+ // If there is a target of type lib{} in this project, then
+ // initialized the lib part of the module.
+ //
+ init_lib (d);
+
liba* a (targets.find<liba> (d, n));
libso* so (targets.find<libso> (d, n));
lib* l (new lib (move (d), move (n), e));