Fix default version with missing .git directory

This commit is contained in:
Matthias Hochsteger 2023-09-05 17:03:11 +02:00
parent bcab484095
commit c7e2a2ea7c

View File

@ -24,8 +24,8 @@ if(status AND NOT status EQUAL 0)
string(REGEX REPLACE "^netgen(.*)" "\\1" git_version_string "${git_version_string}") string(REGEX REPLACE "^netgen(.*)" "\\1" git_version_string "${git_version_string}")
endif() endif()
else() else()
MESSAGE(WARNING "Could not determine git-version from source code - assuming 6.2.0.0") MESSAGE(WARNING "Could not determine git-version from source code - assuming 6.2.0-0")
set(git_version_string "v6.2.0.0") set(git_version_string "v6.2.0-0")
endif() endif()
endif() endif()
string(STRIP ${git_version_string} git_version_string) string(STRIP ${git_version_string} git_version_string)