Skip to content

Commit

Permalink
Append project name to the check_git target to fix compound builds (#446
Browse files Browse the repository at this point in the history
)
  • Loading branch information
artemdinaburg authored Aug 12, 2020
1 parent 629f0a8 commit 5f74c38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/git_watcher.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ endfunction()
# check the state of git before every build. If the state has
# changed, then a file is configured.
function(SetupGitMonitoring)
add_custom_target(check_git
add_custom_target(check_git_${PROJECT_NAME}
ALL
DEPENDS ${PRE_CONFIGURE_FILE}
BYPRODUCTS
Expand Down
2 changes: 1 addition & 1 deletion remill/Version/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ include("${CMAKE_SOURCE_DIR}/cmake/git_watcher.cmake")
# Create a library out of the compiled post-configure file.
add_library(RemillVersion STATIC ${POST_CONFIGURE_FILE})
target_include_directories(RemillVersion PUBLIC ${CMAKE_SOURCE_DIR})
add_dependencies(RemillVersion check_git)
add_dependencies(RemillVersion check_git_${PROJECT_NAME})

0 comments on commit 5f74c38

Please sign in to comment.