From bd39d5b1fa4a068d96876511c7f5b522384e2570 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 28 Apr 2025 23:50:51 -0400 Subject: [PATCH] Use upstream Corrosion, not what is shipped in your system Fedora refuses to update their Corrosion, and it's getting *really* annoying. Whatever! --- external/CMakeLists.txt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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)