Commit 31a518be authored by Kenneth Moreland's avatar Kenneth Moreland Committed by Kitware Robot

Merge topic 'version-tarball-in-git'

c6d23cad Fix VTK-m version for tarball in another git repository
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Robert Maynard's avatarRobert Maynard <robert.maynard@kitware.com>
Merge-request: !974
parents 546b2144 c6d23cad
......@@ -42,7 +42,7 @@ function(determine_version source_dir git_command var_prefix)
# this function.
return ()
elseif (NOT VTKm_GIT_DESCRIBE)
if(EXISTS ${git_command})
if(EXISTS ${git_command} AND EXISTS ${source_dir}/.git)
execute_process(
COMMAND ${git_command} describe
WORKING_DIRECTORY ${source_dir}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment