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:
Simon Hausmann 2021-11-03 17:00:18 +01:00 committed by Simon Hausmann
parent 9401bfbec7
commit 6346a55fdd

View file

@ -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)