mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Merge topic 'version-tarball-in-git'
c6d23cad Fix VTK-m version for tarball in another git repository Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Robert Maynard <robert.maynard@kitware.com> Merge-request: !974
This commit is contained in:
commit
31a518beac
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user