Skip to content

Commit

Permalink
Add CADET file format to versioninfo
Browse files Browse the repository at this point in the history
  • Loading branch information
jbreue16 committed Nov 24, 2024
1 parent f12da12 commit c9ca1d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/VersionInfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ namespace casema
const char* getCompiler() CASEMA_NOEXCEPT;
const char* getCompilerFlags() CASEMA_NOEXCEPT;
const char* getBuildHost() CASEMA_NOEXCEPT;
const int getFileFormat() CASEMA_NOEXCEPT;

} // namespace casema

Expand Down
5 changes: 5 additions & 0 deletions src/VersionInfo.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ namespace casema
const char BUILD_HOST[] = "@CMAKE_SYSTEM@";
const char COMPILER_FLAGS[] = "@CMAKE_CXX_FLAGS@";

const int getFileFormat() CASEMA_NOEXCEPT
{
return 40000; // CADET file format
}

const char* getVersion() CASEMA_NOEXCEPT
{
return casema::CASEMA_VERSION;
Expand Down

0 comments on commit c9ca1d8

Please sign in to comment.