Browse Source

Merge branch 'release/1.9.x'

Conflicts:
	pandatool/src/assimp/pandaLogger.h
rdb 10 years ago
parent
commit
956097b632
2 changed files with 7 additions and 3 deletions
  1. 1 1
      makepanda/makepandacore.py
  2. 6 2
      pandatool/src/assimp/pandaLogger.h

+ 1 - 1
makepanda/makepandacore.py

@@ -1553,7 +1553,7 @@ def SmartPkgEnable(pkg, pkgconfig = None, libs = None, incs = None, defs = None,
             if (have_all_pkgs):
             if (have_all_pkgs):
                 return
                 return
 
 
-    if pkgconfig is not None and not libs:
+    if not custom_loc and pkgconfig is not None and not libs:
         # pkg-config is all we can do, abort if it wasn't found.
         # pkg-config is all we can do, abort if it wasn't found.
         if pkg in PkgListGet():
         if pkg in PkgListGet():
             print("%sWARNING:%s Could not locate pkg-config package %s, excluding from build" % (GetColor("red"), GetColor(), pkgconfig))
             print("%sWARNING:%s Could not locate pkg-config package %s, excluding from build" % (GetColor("red"), GetColor(), pkgconfig))

+ 6 - 2
pandatool/src/assimp/pandaLogger.h

@@ -29,8 +29,12 @@ public:
   static void set_default();
   static void set_default();
 
 
 protected:
 protected:
-  INLINE bool attachStream(Assimp::LogStream*, unsigned int) {};
-  INLINE bool detatchStream(Assimp::LogStream*, unsigned int) {}; // sic
+  INLINE bool attachStream(Assimp::LogStream*, unsigned int) {
+    return false;
+  };
+  INLINE bool detatchStream(Assimp::LogStream*, unsigned int) {
+    return false;
+  };
 
 
   void OnDebug(const char *message);
   void OnDebug(const char *message);
   void OnError(const char *message);
   void OnError(const char *message);