From 7b8f5857b28e67c4e829b5442b38ac5705715d8d Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 21 Sep 2009 09:54:09 +0000 Subject: [PATCH] Properly handle default and install options for datafiles --- source/component.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/component.cpp b/source/component.cpp index 26ce710..e96ac22 100644 --- a/source/component.cpp +++ b/source/component.cpp @@ -145,7 +145,13 @@ void Component::create_targets() const else source=new File(builder, pkg, files.front()); ::DataFile *result=new ::DataFile(builder, *this, *source); - inst_list.push_back(result); + + if(&pkg==builder.get_main_package() && deflt) + def_tgt->add_depend(result); + else + world->add_depend(result); + if(install) + inst_list.push_back(result); } else { -- 2.43.0