Skip to content

Commit c2ae1c3

Browse files
committed
fix git rev dependency in cmake configure
1 parent 527cd05 commit c2ae1c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ if(EXISTS "${CMAKE_SOURCE_DIR}/.git/index")
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")
8787
list(APPEND mi_defines "MI_GIT_DESCRIBE=${mi_git_describe}")
88-
list(APPEND CMAKE_CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/.git/index") # add to dependencies so we rebuild if the git rev changes
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
8989
endif()
9090
endif()
9191
endif()

0 commit comments

Comments
 (0)