]> git.tdb.fi Git - builder.git/blobdiff - source/binarypackage.cpp
Adapt to changes in msppath
[builder.git] / source / binarypackage.cpp
index c2c18867018abc32d8dd9f81c2e53e38c0d18fea..aaeb3e556ab02a92b305fe4434696e1fd2095233 100644 (file)
@@ -5,6 +5,7 @@ Copyright © 2007  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
+#include <iostream>
 #include <msp/strings/utils.h>
 #include "binarypackage.h"
 #include "builder.h"
@@ -23,7 +24,7 @@ BinaryPackage::BinaryPackage(Builder &b, const string &n):
 Sets the path where the package files were installed.  This is only useful if
 the package doesn't use pkg-config.
 */
-void BinaryPackage::set_path(const Msp::Path::Path &p)
+void BinaryPackage::set_path(const Msp::Path &p)
 {
        path=builder.get_cwd()/p;
 }
@@ -47,6 +48,8 @@ BinaryPackage *BinaryPackage::from_pkgconfig(Builder &builder, const string &nam
        argv.push_back("--cflags");
        argv.push_back("--libs");
        argv.push_back(name);
+       if(builder.get_verbose()>=4)
+               cout<<"Running "<<join(argv.begin(), argv.end())<<'\n';
        string info=run_command(argv);
 
        if(info.empty())