aboutsummaryrefslogtreecommitdiff
path: root/build/bin/target.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-24 16:55:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-24 16:55:55 +0200
commitf103f86ec3247ff27e7cc23dfce5e426f385ed8c (patch)
tree4efffb7d254e494944ce555d343c34d957238be0 /build/bin/target.cxx
parent2a0f9e035f673f1ee387924501a31990de37f18d (diff)
Take one on library linking
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));