X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftarget.cpp;h=fa63ac4e5154293050db87c91168d4c286690938;hb=654de39b62a9a58fd8e1b5a557361d628345788b;hp=c9c23ad9116165297d602978b9be04c13f902530;hpb=8bc8db44c47cd2906c57dccbfb589e41eff7f694;p=builder.git diff --git a/source/target.cpp b/source/target.cpp index c9c23ad..fa63ac4 100644 --- a/source/target.cpp +++ b/source/target.cpp @@ -10,6 +10,7 @@ Distributed under the LGPL #include "action.h" #include "builder.h" #include "package.h" +#include "sourcepackage.h" #include "target.h" using namespace std; @@ -137,7 +138,9 @@ void Target::check_rebuild() mark_rebuild(Path::basename((*i)->get_name())+" needs rebuilding"); } } - if(!rebuild && package && package->get_config().get_mtime()>mtime) + + const SourcePackage *spkg=dynamic_cast(package); + if(!rebuild && spkg && spkg->get_config().get_mtime()>mtime) mark_rebuild("Package options changed"); }