[mlpack-git] master: Add a comment, and fix macro name. (9724d6c)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Tue Mar 24 22:35:27 EDT 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/cbccdc78493a4db6cf6ebbf6442674bab8d9c22c...9724d6c63e878e4cbe98cd907c5e5f39175ef1bd
>---------------------------------------------------------------
commit 9724d6c63e878e4cbe98cd907c5e5f39175ef1bd
Author: Ryan Curtin <ryan at ratml.org>
Date: Tue Mar 24 22:32:04 2015 -0400
Add a comment, and fix macro name.
>---------------------------------------------------------------
9724d6c63e878e4cbe98cd907c5e5f39175ef1bd
src/mlpack/core/util/version.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mlpack/core/util/version.cpp b/src/mlpack/core/util/version.cpp
index 4c86d9e..3a5347b 100644
--- a/src/mlpack/core/util/version.cpp
+++ b/src/mlpack/core/util/version.cpp
@@ -12,12 +12,14 @@
// name.
std::string mlpack::util::GetVersion()
{
-#ifndef __MLPACK_SUBVERSION
+#ifndef __MLPACK_GIT_VERSION
std::stringstream o;
o << "mlpack " << __MLPACK_VERSION_MAJOR << "." << __MLPACK_VERSION_MINOR
<< "." << __MLPACK_VERSION_PATCH;
return o.str();
#else
- #include "svnversion.hpp"
+ // This file is generated by CMake as necessary and contains just a return
+ // statement with the git revision in it.
+ #include "gitversion.hpp"
#endif
}
More information about the mlpack-git
mailing list