summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-09-16 18:48:53 +0200
committerGitHub <noreply@github.com>2022-09-16 18:48:53 +0200
commit8dafe15600d82094dbbba207cb6f565cce28e0fd (patch)
tree9c65af3ea981308d1fc1c8e77682641c43fcd6c0
parentMerge pull request #8682 from lat9nq/dumpy (diff)
parentcommon: Use PROJECT_SOURCE_DIR to find CMakeModules (diff)
downloadyuzu-8dafe15600d82094dbbba207cb6f565cce28e0fd.tar
yuzu-8dafe15600d82094dbbba207cb6f565cce28e0fd.tar.gz
yuzu-8dafe15600d82094dbbba207cb6f565cce28e0fd.tar.bz2
yuzu-8dafe15600d82094dbbba207cb6f565cce28e0fd.tar.lz
yuzu-8dafe15600d82094dbbba207cb6f565cce28e0fd.tar.xz
yuzu-8dafe15600d82094dbbba207cb6f565cce28e0fd.tar.zst
yuzu-8dafe15600d82094dbbba207cb6f565cce28e0fd.zip
-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 b1e0ba6cc..68436a4bc 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -19,7 +19,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}
@@ -31,13 +31,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
)