Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Commit

Permalink
Append project name to the check_git target to fix compound builds (#688
Browse files Browse the repository at this point in the history
)
  • Loading branch information
artemdinaburg authored Aug 12, 2020
1 parent 338023c commit 8a041d2
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 mcsema/Version/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ include("${MCSEMA_SOURCE_DIR}/cmake/git_watcher.cmake")
# Create a library out of the compiled post-configure file.
add_library(McSemaVersion STATIC ${POST_CONFIGURE_FILE})
target_include_directories(McSemaVersion PUBLIC ${MCSEMA_SOURCE_DIR})
add_dependencies(McSemaVersion check_git)
add_dependencies(McSemaVersion check_git_${PROJECT_NAME})

0 comments on commit 8a041d2

Please sign in to comment.