From c8ebc8736ee6d211bd48d761374f9b5612584b90 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 3 Sep 2015 00:41:07 +1000 Subject: CMake: Fix building w/o FindGit --- build_files/cmake/packaging.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build_files/cmake/packaging.cmake') diff --git a/build_files/cmake/packaging.cmake b/build_files/cmake/packaging.cmake index b2b14a5e1da..f1939cfd474 100644 --- a/build_files/cmake/packaging.cmake +++ b/build_files/cmake/packaging.cmake @@ -21,7 +21,7 @@ SET(CPACK_PACKAGE_VERSION_PATCH "${PATCH_VERSION}") # Get the build revision, note that this can get out-of-sync, so for packaging run cmake first. set(MY_WC_HASH "unknown") if(EXISTS ${CMAKE_SOURCE_DIR}/.git/) - include(FindGit) + find_package(Git) if(GIT_FOUND) message(STATUS "-- Found Git: ${GIT_EXECUTABLE}") execute_process(COMMAND git rev-parse --short HEAD -- cgit v1.2.3