diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 9b0c3db68..9afc6105d 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt | |||
| @@ -15,6 +15,10 @@ endif () | |||
| 15 | if (DEFINED ENV{DISPLAYVERSION}) | 15 | if (DEFINED ENV{DISPLAYVERSION}) |
| 16 | set(DISPLAY_VERSION $ENV{DISPLAYVERSION}) | 16 | set(DISPLAY_VERSION $ENV{DISPLAYVERSION}) |
| 17 | endif () | 17 | endif () |
| 18 | |||
| 19 | # Pass the path to git to the GenerateSCMRev.cmake as well | ||
| 20 | find_package(Git QUIET) | ||
| 21 | |||
| 18 | add_custom_command(OUTPUT scm_rev.cpp | 22 | add_custom_command(OUTPUT scm_rev.cpp |
| 19 | COMMAND ${CMAKE_COMMAND} | 23 | COMMAND ${CMAKE_COMMAND} |
| 20 | -DSRC_DIR="${CMAKE_SOURCE_DIR}" | 24 | -DSRC_DIR="${CMAKE_SOURCE_DIR}" |
| @@ -23,6 +27,7 @@ add_custom_command(OUTPUT scm_rev.cpp | |||
| 23 | -DTITLE_BAR_FORMAT_RUNNING="${TITLE_BAR_FORMAT_RUNNING}" | 27 | -DTITLE_BAR_FORMAT_RUNNING="${TITLE_BAR_FORMAT_RUNNING}" |
| 24 | -DBUILD_TAG="${BUILD_TAG}" | 28 | -DBUILD_TAG="${BUILD_TAG}" |
| 25 | -DBUILD_ID="${DISPLAY_VERSION}" | 29 | -DBUILD_ID="${DISPLAY_VERSION}" |
| 30 | -DGIT_EXECUTABLE="${GIT_EXECUTABLE}" | ||
| 26 | -P "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake" | 31 | -P "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake" |
| 27 | DEPENDS | 32 | DEPENDS |
| 28 | # WARNING! It was too much work to try and make a common location for this list, | 33 | # WARNING! It was too much work to try and make a common location for this list, |