]> git.tdb.fi Git - builder.git/commitdiff
Properly generate the install target for .pc files
authorMikko Rasa <tdb@tdb.fi>
Wed, 30 May 2012 19:11:25 +0000 (19:11 +0000)
committerMikko Rasa <tdb@tdb.fi>
Sun, 8 Jul 2012 21:08:52 +0000 (00:08 +0300)
source/builder.cpp

index db46e5b7edf0345e67894871d3b0d0d3f7be697e..42dc4646291bfca2c1650f44338a94e090cb93fd 100644 (file)
@@ -505,7 +505,7 @@ int Builder::create_targets()
                if(spkg->get_install_flags()&(SourcePackage::LIB|SourcePackage::INCLUDE))
                {
                        PkgConfig *pc = new PkgConfig(*this, *spkg);
-                       install->add_depend(new InstalledFile(*this, *spkg, *pc));
+                       install->add_depend(toolchain.get_tool("CP").create_target(*pc));
                }
        }