]> git.tdb.fi Git - builder.git/blobdiff - source/builder.cpp
Initialize Component::install to false
[builder.git] / source / builder.cpp
index b90f2c4153651628c04ffbf552c9450095931110..2c137ca406841a1159269851f8177261504c91c9 100644 (file)
@@ -301,6 +301,10 @@ int Builder::create_targets()
                if(!i->second->get_buildable())
                        continue;
 
+               Path::Path inst_base;
+               if(i->second->get_config().is_option("prefix"))
+                       inst_base=i->second->get_config().get_option("prefix").value;
+
                const ComponentList &components=i->second->get_components();
                for(ComponentList::const_iterator j=components.begin(); j!=components.end(); ++j)
                {
@@ -313,8 +317,6 @@ int Builder::create_targets()
                                        files.push_back(*k / *l);
                        }
 
-                       Path::Path inst_base=i->second->get_config().get_option("prefix").value;
-
                        bool build_exe=j->get_type()!=Component::HEADERS;
                        
                        list<ObjectFile *> objs;