Fix issues with VTKmDetermineVersion.
Compare changes
+ 3
− 1
@@ -51,6 +51,8 @@ function(determine_version source_dir git_command var_prefix)
@@ -74,7 +76,7 @@ endfunction()
The code had 2 issues:
used obsolete 'output' if Git executable was missing. There was a possibility that output variable was never set and used some garbage value from parent scope.
version pattern matching was too liberal and would match any long txt so long as it has some numbers in it that matched a typical version number.