Skip to content

Commit c86dc2e

Browse files
committed
added MakeStringVersion file
1 parent bcfc64c commit c86dc2e

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ file(GLOB_RECURSE ORYX_CRT_HEADERS
6565

6666
target_sources(${PROJECT_NAME}
6767
PRIVATE
68+
src/version.cpp
6869
src/uuid.cpp
6970
PUBLIC
7071
FILE_SET HEADERS

src/version.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <oryx/crt/version.hpp>
2+
3+
#include <format>
4+
5+
namespace oryx::crt {
6+
7+
auto MakeStringVersion() -> std::string { return std::format("{}.{}.{}", kVersionMajor, KVersionMinor, kVersionPatch); }
8+
9+
} // namespace oryx::crt

0 commit comments

Comments
 (0)