diff --git a/CMakeLists.txt b/CMakeLists.txt index fb55e44c9df44..936b160c9474f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -225,7 +225,8 @@ add_custom_target(version COMMAND ${CMAKE_SOURCE_DIR}/build/unix/makeversion.sh #add_dependencies(version root.exe) #---distribution commands------------------------------------------------------------------------ -add_custom_target(distsrc COMMAND ${CMAKE_SOURCE_DIR}/build/unix/makedistsrc.sh ${CMAKE_SOURCE_DIR}) +add_custom_target(distsrc COMMAND ${CMAKE_SOURCE_DIR}/build/unix/makedistsrc.sh ${CMAKE_SOURCE_DIR} + DEPENDS ${CMAKE_BINARY_DIR}/include/RGitCommit.h) add_custom_target(dist COMMAND cpack --config CPackConfig.cmake) #---Configure and install various files neded later and for clients -----------------------------