CMake: add entry point to binary dependency

This commit is contained in:
David Adam 2024-02-11 21:07:43 +08:00
parent 7dfe6f2c07
commit 59fe52851e

View file

@ -109,7 +109,7 @@ function(FISH_LINK_DEPS_AND_SIGN target)
--target ${Rust_CARGO_TARGET}
${CARGO_FLAGS}
${FEATURES_ARG}
DEPENDS ${sources}
DEPENDS ${sources} src/bin/${target}.rs
DEPENDS Cargo.toml Cargo.lock build.rs
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
USES_TERMINAL