-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added file and cli flag for retrieving cyclus core and dependency ver…
…sions. Fixes #578.
- Loading branch information
Showing
3 changed files
with
68 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#ifndef VERSION_H_ | ||
#define VERSION_H_ | ||
|
||
#include <sstream> | ||
|
||
#include "boost/version.hpp" | ||
#include "sqlite3.h" | ||
#include "hdf5.h" | ||
#include "libxml/xmlversion.h" | ||
#include "coin/CbcConfig.h" | ||
|
||
|
||
namespace cyclus { | ||
namespace version { | ||
const char* core() { | ||
return "@core_version@"; | ||
}; | ||
|
||
const char* boost() { | ||
return BOOST_LIB_VERSION; | ||
}; | ||
|
||
const char* sqlite3() { | ||
return SQLITE_VERSION; | ||
}; | ||
|
||
const char* hdf5() { | ||
std::stringstream ss; | ||
ss << H5_VERS_MAJOR << "."; | ||
ss << H5_VERS_MINOR << "."; | ||
ss << H5_VERS_RELEASE << "-"; | ||
ss << H5_VERS_SUBRELEASE; | ||
return ss.str().c_str(); | ||
}; | ||
|
||
const char* xml2() { | ||
return LIBXML_DOTTED_VERSION; | ||
}; | ||
|
||
const char* coincbc() { | ||
return CBC_VERSION; | ||
}; | ||
}; | ||
} // namespace cyclus | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters