remove status message

This commit is contained in:
Daan Leijen 2025-03-01 14:52:37 -08:00
parent b0b9d9c22b
commit 113800d1f0

View file

@ -84,10 +84,8 @@ if(EXISTS "${CMAKE_SOURCE_DIR}/.git/index")
if(GIT_FOUND)
execute_process(COMMAND ${GIT_EXECUTABLE} "describe" OUTPUT_VARIABLE mi_git_describe RESULT_VARIABLE mi_git_res ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
if(mi_git_res EQUAL "0")
message(STATUS, "git describe: ${mi_git_describe}")
list(APPEND mi_defines "MI_GIT_DESCRIBE=${mi_git_describe}")
# add to dependencies so we rebuild if the git head commit changes
# todo: this doesn't seem to work?
set_property(GLOBAL APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/.git/index")
endif()
endif()