[mlpack-git] master: Include backtrace.hpp only when libs are found (dc0e553)
gitdub at mlpack.org
gitdub at mlpack.org
Thu Feb 25 16:28:17 EST 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/fd84f3a2e53592d723a8e8a76dadb8aa76820913...1a9c41a86be1fa1dcc5c3b90dd959c2255c3bb8e
>---------------------------------------------------------------
commit dc0e553fd94d96920367437c8e3e1f7004d45ed9
Author: Grzegorz Krajewski <krajekg at gmail.com>
Date: Thu Feb 25 22:28:17 2016 +0100
Include backtrace.hpp only when libs are found
>---------------------------------------------------------------
dc0e553fd94d96920367437c8e3e1f7004d45ed9
src/mlpack/core/util/log.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/mlpack/core/util/log.cpp b/src/mlpack/core/util/log.cpp
index 03ce9fc..cc5a424 100644
--- a/src/mlpack/core/util/log.cpp
+++ b/src/mlpack/core/util/log.cpp
@@ -5,7 +5,10 @@
* Implementation of the Log class.
*/
#include "log.hpp"
-#include "backtrace.hpp"
+
+#ifdef HAS_BFD_DL
+ #include "backtrace.hpp"
+#endif
// Color code escape sequences -- but not on Windows.
#ifndef _WIN32
More information about the mlpack-git
mailing list