diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f45181..50901ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,6 +67,8 @@ include(cmake/BuildInfo.cmake) check_symbol_exists("getifaddrs" "ifaddrs.h" TILE_HAVE_GETIFADDRS) check_symbol_exists("freeifaddrs" "ifaddrs.h" TILE_HAVE_FREEIFADDRS) +find_package(Git REQUIRED) + get_git_commit_hash(GIT_COMMIT_HASH) get_git_commit_date(GIT_COMMIT_DATE) get_git_commit_subject(GIT_COMMIT_SUBJECT) diff --git a/cmake/BuildInfo.cmake b/cmake/BuildInfo.cmake index e2c19a6..33c60ac 100644 --- a/cmake/BuildInfo.cmake +++ b/cmake/BuildInfo.cmake @@ -1,5 +1,3 @@ -find_package(Git REQUIRED) - macro(get_git_commit_hash output) # full commit hash execute_process(