summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlat9nq <lat9nq@gmail.com>2022-07-26 22:46:55 +0200
committerlat9nq <lat9nq@gmail.com>2022-08-02 05:18:56 +0200
commit260430c84951166ca1466de42937d70edf1ab5d0 (patch)
tree306c4057987060cd340785af7ef3f3e6519b5979 /src
parentMerge pull request #8652 from lat9nq/ffmpeg-gh (diff)
downloadyuzu-260430c84951166ca1466de42937d70edf1ab5d0.tar
yuzu-260430c84951166ca1466de42937d70edf1ab5d0.tar.gz
yuzu-260430c84951166ca1466de42937d70edf1ab5d0.tar.bz2
yuzu-260430c84951166ca1466de42937d70edf1ab5d0.tar.lz
yuzu-260430c84951166ca1466de42937d70edf1ab5d0.tar.xz
yuzu-260430c84951166ca1466de42937d70edf1ab5d0.tar.zst
yuzu-260430c84951166ca1466de42937d70edf1ab5d0.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 05fdfea82..3ff373f7f 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -16,7 +16,7 @@ find_package(Git QUIET)
add_custom_command(OUTPUT scm_rev.cpp
COMMAND ${CMAKE_COMMAND}
- -DSRC_DIR=${CMAKE_SOURCE_DIR}
+ -DSRC_DIR=${PROJECT_SOURCE_DIR}
-DBUILD_REPOSITORY=${BUILD_REPOSITORY}
-DTITLE_BAR_FORMAT_IDLE=${TITLE_BAR_FORMAT_IDLE}
-DTITLE_BAR_FORMAT_RUNNING=${TITLE_BAR_FORMAT_RUNNING}
@@ -28,13 +28,13 @@ add_custom_command(OUTPUT scm_rev.cpp
-DGIT_BRANCH=${GIT_BRANCH}
-DBUILD_FULLNAME=${BUILD_FULLNAME}
-DGIT_EXECUTABLE=${GIT_EXECUTABLE}
- -P ${CMAKE_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake
+ -P ${PROJECT_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake
DEPENDS
# Check that the scm_rev files haven't changed
"${CMAKE_CURRENT_SOURCE_DIR}/scm_rev.cpp.in"
"${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"
+ "${PROJECT_SOURCE_DIR}/CMakeModules/GenerateSCMRev.cmake"
VERBATIM
)