X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcomponent.cpp;h=a63e3b05d371571af52888dce3b8a8a2f749138b;hb=592fa2bca4e973678cbdc86802fe1c151b40e04d;hp=b486c6c36a45174c12dfa39146e42950e16a1418;hpb=92ab07ba1704c3d66dcc5e3e6a1c78e5d2738515;p=builder.git diff --git a/source/component.cpp b/source/component.cpp index b486c6c..a63e3b0 100644 --- a/source/component.cpp +++ b/source/component.cpp @@ -162,13 +162,16 @@ void Component::create_targets() const if(tool) { Target *src = tool->create_source(*this, *i); + if(!src) + continue; + if(tool->accepts_suffix(ext)) { Target *obj = tool->create_target(*src); objs.push_back(obj); } - if(type==LIBRARY && install && !dynamic_cast(src)->get_install_location().empty()) + if(type==LIBRARY && install && dynamic_cast(src)->is_installable()) inst_list.push_back(src); } }