mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Fix corrision build
Set CARGO_MANIFEST_DIR for the bindgen xtask as when run through cargo
This commit is contained in:
parent
7613b9231f
commit
8c3ab3608a
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ file(GLOB generated_headers_dependencies
|
||||||
add_custom_target(
|
add_custom_target(
|
||||||
generated_headers_target
|
generated_headers_target
|
||||||
COMMAND
|
COMMAND
|
||||||
xtask cbindgen --output-dir "${CMAKE_CURRENT_BINARY_DIR}/generated_include/"
|
${CMAKE_COMMAND} -E env CARGO_MANIFEST_DIR="${CMAKE_CURRENT_SOURCE_DIR}/../../xtask}" $<TARGET_FILE:xtask> cbindgen --output-dir "${CMAKE_CURRENT_BINARY_DIR}/generated_include/"
|
||||||
BYPRODUCTS ${generated_headers}
|
BYPRODUCTS ${generated_headers}
|
||||||
DEPENDS ${generated_headers_dependencies}
|
DEPENDS ${generated_headers_dependencies}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue