diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-10-25 19:01:59 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-10-25 19:01:59 -0500 |
commit | 919e06bbfd4666558153bdee74e3f40c231f34ad (patch) | |
tree | deb0282aba59672700f0a4e90c4d21836a949112 | |
parent | Merge pull request #8006 (diff) | |
parent | cmake: use CMAKE_CURRENT_LIST_DIR for git version (diff) | |
download | monero-919e06bbfd4666558153bdee74e3f40c231f34ad.tar.xz |
Merge pull request #8011
9c61110 cmake: use CMAKE_CURRENT_LIST_DIR for git version (selsta)
-rw-r--r-- | cmake/GitVersion.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/GitVersion.cmake b/cmake/GitVersion.cmake index 6a62bcaa3..2839d549f 100644 --- a/cmake/GitVersion.cmake +++ b/cmake/GitVersion.cmake @@ -32,7 +32,7 @@ function (get_version_tag_from_git GIT) execute_process(COMMAND "${GIT}" rev-parse --short=9 HEAD - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} RESULT_VARIABLE RET OUTPUT_VARIABLE COMMIT OUTPUT_STRIP_TRAILING_WHITESPACE) @@ -49,7 +49,7 @@ function (get_version_tag_from_git GIT) # Get all the tags execute_process(COMMAND "${GIT}" tag -l --points-at HEAD - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} RESULT_VARIABLE RET OUTPUT_VARIABLE TAG OUTPUT_STRIP_TRAILING_WHITESPACE) |