forked from OpenXRay/xray-16
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify quotes in target_compile_definitions properly, fix potential …
…issue with set_git_info
- Loading branch information
1 parent
2c231d7
commit 7363a04
Showing
7 changed files
with
30 additions
and
24 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
echo | set /p dummyName=#define GIT_INFO_CURRENT_COMMIT > .GitInfo.hpp | ||
git rev-parse --verify HEAD >> .GitInfo.hpp | ||
@FOR /f "delims=" %%i in ('git rev-parse --verify HEAD') DO set COMMIT=%%i | ||
echo #define GIT_INFO_CURRENT_COMMIT "%COMMIT%" > .GitInfo.hpp | ||
|
||
echo | set /p dummyName=#define GIT_INFO_CURRENT_BRANCH >> .GitInfo.hpp | ||
git rev-parse --abbrev-ref HEAD >> .GitInfo.hpp | ||
@FOR /f "delims=" %%i in ('git rev-parse --abbrev-ref HEAD') DO set BRANCH=%%i | ||
echo #define GIT_INFO_CURRENT_BRANCH "%BRANCH%" >> .GitInfo.hpp |
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
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
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