diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 4809e2a..0baa35f 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -9,7 +9,14 @@ set(BUILD_TESTS OFF) add_subdirectory(libcotp EXCLUDE_FROM_ALL) -find_package(Corrosion REQUIRED) +include(FetchContent) +FetchContent_Declare( + Corrosion + GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git + GIT_TAG v0.5.1 +) + +FetchContent_MakeAvailable(Corrosion) corrosion_import_crate(MANIFEST_PATH ${CMAKE_CURRENT_SOURCE_DIR}/libphysis/Cargo.toml NO_DEFAULT_FEATURES @@ -34,4 +41,4 @@ endif() set(KDSingleApplication_QT6 ON) set(KDSingleApplication_STATIC ON) -add_subdirectory(kdsingleapplication EXCLUDE_FROM_ALL) \ No newline at end of file +add_subdirectory(kdsingleapplication EXCLUDE_FROM_ALL)