From 091de5764d73f9c084827afa154a691d7d9ac75a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 Aug 2017 07:30:12 +0200 Subject: Add extracted from pkg-config prerequisite libraries as prerequisites --- build2/bin/target.cxx | 2 +- build2/bin/target.hxx | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'build2/bin') diff --git a/build2/bin/target.cxx b/build2/bin/target.cxx index aa37202..d9dc64b 100644 --- a/build2/bin/target.cxx +++ b/build2/bin/target.cxx @@ -13,7 +13,7 @@ namespace build2 const target_type libx::static_type { "libx", - &target::static_type, + &mtime_target::static_type, nullptr, nullptr, nullptr, diff --git a/build2/bin/target.hxx b/build2/bin/target.hxx index e0c0358..790d1f0 100644 --- a/build2/bin/target.hxx +++ b/build2/bin/target.hxx @@ -119,10 +119,14 @@ namespace build2 // Common base for lib{} and libu{} groups. // - class libx: public target + // We use mtime_target as a base for the "trust me it exists" functionality + // which we use, for example, to have installed lib{} prerequisites that + // are matched by the fallback file rule. + // + class libx: public mtime_target { public: - using target::target; + using mtime_target::mtime_target; public: static const target_type static_type; -- cgit v1.1