diff --git a/CMake/Version.cmake b/CMake/Version.cmake index 3522ec6a9..db6613b84 100644 --- a/CMake/Version.cmake +++ b/CMake/Version.cmake @@ -1,7 +1,7 @@ find_program(GIT git) execute_process( COMMAND ${GIT} describe - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE GIT_DESCRIBE_DIRTY OUTPUT_STRIP_TRAILING_WHITESPACE )