]> git.tdb.fi Git - builder.git/commitdiff
is_installable is more appropriate here
authorMikko Rasa <tdb@tdb.fi>
Sat, 21 Jul 2012 13:50:06 +0000 (16:50 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 21 Jul 2012 13:50:06 +0000 (16:50 +0300)
source/component.cpp

index f4c63a8dca5e06f71be5153e9c25b2d86194cea6..a63e3b05d371571af52888dce3b8a8a2f749138b 100644 (file)
@@ -171,7 +171,7 @@ void Component::create_targets() const
                                        objs.push_back(obj);
                                }
 
-                               if(type==LIBRARY && install && !dynamic_cast<FileTarget *>(src)->get_install_location().empty())
+                               if(type==LIBRARY && install && dynamic_cast<FileTarget *>(src)->is_installable())
                                        inst_list.push_back(src);
                        }
                }