mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Check the Rust version when using corrosion
Let cmake perform the version check. FindRust.cmake already uses VERSION_VAR and therefore is versioned. cc #622
This commit is contained in:
parent
9401bfbec7
commit
6346a55fdd
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@ FetchContent_Declare(
|
|||
GIT_TAG f679545a63a8b214a415e086f910126ab66714fa
|
||||
)
|
||||
FetchContent_MakeAvailable(Corrosion)
|
||||
|
||||
list(PREPEND CMAKE_MODULE_PATH ${Corrosion_SOURCE_DIR}/cmake)
|
||||
find_package(Rust 1.54 REQUIRED MODULE)
|
||||
|
||||
corrosion_import_crate(MANIFEST_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../Cargo.toml"
|
||||
CRATES sixtyfps-compiler sixtyfps-cpp)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue