diff options
author | liushuyu <liushuyu011@gmail.com> | 2021-06-09 09:35:50 +0200 |
---|---|---|
committer | liushuyu <liushuyu011@gmail.com> | 2021-06-09 10:20:55 +0200 |
commit | eb9deffab6bf9de8a29ab92a318258f93a199c6e (patch) | |
tree | 9b52d5ccab1fa9386bbe28e8e3bdfa46f78a5e4d | |
parent | Merge pull request #6435 from lioncash/nodisc2 (diff) | |
download | yuzu-eb9deffab6bf9de8a29ab92a318258f93a199c6e.tar yuzu-eb9deffab6bf9de8a29ab92a318258f93a199c6e.tar.gz yuzu-eb9deffab6bf9de8a29ab92a318258f93a199c6e.tar.bz2 yuzu-eb9deffab6bf9de8a29ab92a318258f93a199c6e.tar.lz yuzu-eb9deffab6bf9de8a29ab92a318258f93a199c6e.tar.xz yuzu-eb9deffab6bf9de8a29ab92a318258f93a199c6e.tar.zst yuzu-eb9deffab6bf9de8a29ab92a318258f93a199c6e.zip |
-rw-r--r-- | src/common/CMakeLists.txt | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 7a4d9e354..2d403d471 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -21,14 +21,14 @@ find_package(Git QUIET) add_custom_command(OUTPUT scm_rev.cpp COMMAND ${CMAKE_COMMAND} - -DSRC_DIR="${CMAKE_SOURCE_DIR}" - -DBUILD_REPOSITORY="${BUILD_REPOSITORY}" - -DTITLE_BAR_FORMAT_IDLE="${TITLE_BAR_FORMAT_IDLE}" - -DTITLE_BAR_FORMAT_RUNNING="${TITLE_BAR_FORMAT_RUNNING}" - -DBUILD_TAG="${BUILD_TAG}" - -DBUILD_ID="${DISPLAY_VERSION}" - -DGIT_EXECUTABLE="${GIT_EXECUTABLE}" - -P "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake" + -DSRC_DIR=${CMAKE_SOURCE_DIR} + -DBUILD_REPOSITORY=${BUILD_REPOSITORY} + -DTITLE_BAR_FORMAT_IDLE=${TITLE_BAR_FORMAT_IDLE} + -DTITLE_BAR_FORMAT_RUNNING=${TITLE_BAR_FORMAT_RUNNING} + -DBUILD_TAG=${BUILD_TAG} + -DBUILD_ID=${DISPLAY_VERSION} + -DGIT_EXECUTABLE=${GIT_EXECUTABLE} + -P ${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake DEPENDS # WARNING! It was too much work to try and make a common location for this list, # so if you need to change it, please update CMakeModules/GenerateSCMRev.cmake as well @@ -92,6 +92,7 @@ add_custom_command(OUTPUT scm_rev.cpp "${CMAKE_CURRENT_SOURCE_DIR}/scm_rev.h" # technically we should regenerate if the git version changed, but its not worth the effort imo "${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake" + VERBATIM ) add_library(common STATIC |