Skip to content

Commit b322f35

Browse files
committed
edits
1 parent 15156ac commit b322f35

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

libc-dep/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
set(LIBC_DEP_DIR ${CMAKE_SOURCE_DIR}/libc-dep)
2+
set(LIBC_DEP_OUTPUT ${LIBCC2RC_LIB_DIR}/target/release/libc_dep.rlib)
23

34
add_custom_command(
4-
OUTPUT ${LIBCC2RC_LIB_DIR}/target/release/libc_dep.rlib ALL
5+
OUTPUT ${LIBC_DEP_OUTPUT}
56
COMMAND cargo +${RUST_STABLE_VERSION} build --release
67
WORKING_DIRECTORY ${LIBC_DEP_DIR}
78
DEPENDS "${RUST_STAMP_FILE}" ${LIBC_DEP_DIR}/Cargo.toml
89
)
10+
11+
add_custom_target(
12+
libc_dep ALL
13+
DEPENDS "${LIBC_DEP_OUTPUT}"
14+
)

0 commit comments

Comments
 (0)