diff --git a/.gitattributes b/.gitattributes index f75097ecd..e4504cf21 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1 @@ .git* export-ignore -version.cmake export-subst diff --git a/cmake/Version.cmake b/cmake/Version.cmake index 4042bc64d..abc980181 100644 --- a/cmake/Version.cmake +++ b/cmake/Version.cmake @@ -32,10 +32,7 @@ function (write_static_version_header hash) endfunction () find_package(Git QUIET) -if ("$Format:$" STREQUAL "") - # We're in a tarball; use hard-coded variables. - write_static_version_header("release") -elseif (GIT_FOUND OR Git_FOUND) +if (GIT_FOUND OR Git_FOUND) message(STATUS "Found Git: ${GIT_EXECUTABLE}") add_custom_command( OUTPUT "${CMAKE_BINARY_DIR}/version.cpp"