1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-05 08:33:53 +01:00

Fix GIT revision when build directory is outside source tree

This commit is contained in:
Leland Lucius
2020-04-24 23:39:12 -05:00
parent 8898394f90
commit 4b8f923fd1
2 changed files with 4 additions and 3 deletions

View File

@@ -22,9 +22,10 @@ if( GIT_FOUND )
version
COMMAND
${CMAKE_COMMAND} -D GIT=${GIT_EXECUTABLE}
-D _PRVDIR=${_PRVDIR}
-P ${CMAKE_MODULE_PATH}/Version.cmake
WORKING_DIRECTORY
${_PRVDIR}
${topdir}
)
add_dependencies( ${TARGET} version )
endif()