aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bdep/new.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx
index 5bf2a50..bb1f033 100644
--- a/bdep/new.cxx
+++ b/bdep/new.cxx
@@ -906,14 +906,15 @@ namespace bdep
<< h << "{version}: clean = ($src_root != $out_root)" << endl
<< endl
<< x << ".poptions =+ \"-I$out_root\" \"-I$src_root\"" << endl
+ << endl
+ << "obja{*}: " << x << ".poptions += -D" << m << "_STATIC_BUILD" << endl
+ << "objs{*}: " << x << ".poptions += -D" << m << "_SHARED_BUILD" << endl
+ << endl
<< "lib{" << s << "}: " << x << ".export.poptions = \"-I$out_root\" \"-I$src_root\"" << endl
<< endl
<< "liba{" << s << "}: " << x << ".export.poptions += -D" << m << "_STATIC" << endl
<< "libs{" << s << "}: " << x << ".export.poptions += -D" << m << "_SHARED" << endl
<< endl
- << "obja{*}: " << x << ".poptions += -D" << m << "_STATIC_BUILD" << endl
- << "objs{*}: " << x << ".poptions += -D" << m << "_SHARED_BUILD" << endl
- << endl
<< "lib{" << s << "}: " << x << ".export.libs = $int_libs" << endl
<< endl
<< "# For pre-releases use the complete version to make sure they cannot be used" << endl