Skip to content

Commit b0b9d9c

Browse files
committed
add note that git rev dependency doesnt work
1 parent c2ae1c3 commit b0b9d9c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,11 @@ if(EXISTS "${CMAKE_SOURCE_DIR}/.git/index")
8484
if(GIT_FOUND)
8585
execute_process(COMMAND ${GIT_EXECUTABLE} "describe" OUTPUT_VARIABLE mi_git_describe RESULT_VARIABLE mi_git_res ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
8686
if(mi_git_res EQUAL "0")
87+
message(STATUS, "git describe: ${mi_git_describe}")
8788
list(APPEND mi_defines "MI_GIT_DESCRIBE=${mi_git_describe}")
88-
set_property(GLOBAL APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/.git/index") # add to dependencies so we rebuild if the git rev changes
89+
# add to dependencies so we rebuild if the git head commit changes
90+
# todo: this doesn't seem to work?
91+
set_property(GLOBAL APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/.git/index")
8992
endif()
9093
endif()
9194
endif()

0 commit comments

Comments
 (0)