Skip to content

Commit

Permalink
Fix CommitHash file being auto-included in CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 16, 2024
1 parent a158997 commit 38fa684
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions MakeCommitHash.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SET day=%datetime:~6,2%
SET hour=%datetime:~8,2%
SET minute=%datetime:~10,2%

echo #pragma once > src/CommitHash.hpp
echo #define UEVR_COMMIT_HASH "%UEVR_COMMIT_HASH%" >> src/CommitHash.hpp
echo #define UEVR_BUILD_DATE "%day%.%month%.%year%" >> src/CommitHash.hpp
echo #define UEVR_BUILD_TIME "%hour%:%minute%" >> src/CommitHash.hpp
echo #pragma once > src/CommitHash.autogenerated
echo #define UEVR_COMMIT_HASH "%UEVR_COMMIT_HASH%" >> src/CommitHash.autogenerated
echo #define UEVR_BUILD_DATE "%day%.%month%.%year%" >> src/CommitHash.autogenerated
echo #define UEVR_BUILD_TIME "%hour%:%minute%" >> src/CommitHash.autogenerated
2 changes: 1 addition & 1 deletion src/Framework.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "mods/VR.hpp"
#include "mods/ImGuiThemeHelpers.hpp"

#include "CommitHash.hpp"
#include "CommitHash.autogenerated"
#include "ExceptionHandler.hpp"
#include "LicenseStrings.hpp"
#include "mods/FrameworkConfig.hpp"
Expand Down

0 comments on commit 38fa684

Please sign in to comment.