From 12c7c48b200c3b3debca4073cec35521cf6ee1b4 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Mon, 15 Jul 2024 13:22:06 -0500 Subject: [PATCH] updated build system --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c79f1289..a11af78f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,9 @@ include(cmake/functions.cmake) include(cmake/libraries.cmake) if(PROJECT_BUILD) + unset(PROJECT_GIT_REV CACHE) + unset(PROJECT_VERSION CACHE) + execute_process( COMMAND git rev-parse --short HEAD WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" @@ -42,9 +45,6 @@ if(PROJECT_BUILD) ${ADDITIONAL_SOURCES} ) - unset(PROJECT_GIT_REV CACHE) - unset(PROJECT_VERSION CACHE) - include(project.cmake) configure_file(