forked from tomahawk-player/tomahawk
-
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.
* Fixed TWK-243: Show git revision in version number.
- Loading branch information
Showing
3 changed files
with
25 additions
and
23 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,23 @@ | ||
find_program(DATE_EXECUTABLE NAMES date) | ||
mark_as_advanced(DATE_EXECUTABLE) | ||
|
||
if(GIT_EXECUTABLE) | ||
execute_process( | ||
COMMAND ${DATE_EXECUTABLE} +%Y | ||
OUTPUT_VARIABLE CMAKE_DATESTAMP_YEAR | ||
OUTPUT_STRIP_TRAILING_WHITESPACE | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} | ||
) | ||
execute_process( | ||
COMMAND ${DATE_EXECUTABLE} +%m | ||
OUTPUT_VARIABLE CMAKE_DATESTAMP_MONTH | ||
OUTPUT_STRIP_TRAILING_WHITESPACE | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} | ||
) | ||
execute_process( | ||
COMMAND ${DATE_EXECUTABLE} +%d | ||
OUTPUT_VARIABLE CMAKE_DATESTAMP_DAY | ||
OUTPUT_STRIP_TRAILING_WHITESPACE | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} | ||
) | ||
endif() |
This file was deleted.
Oops, something went wrong.