From f10beec178a477450badf1ba1385af2ac446f968 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 28 Apr 2025 23:40: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! --- extern/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/extern/CMakeLists.txt b/extern/CMakeLists.txt index 877a2ed..0131c82 100644 --- a/extern/CMakeLists.txt +++ b/extern/CMakeLists.txt @@ -4,7 +4,12 @@ set(BUILD_SHARED_LIBS OFF) add_compile_options(-w) -find_package(Corrosion REQUIRED) +FetchContent_Declare( + Corrosion + GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git + GIT_TAG v0.5.2 +) +FetchContent_MakeAvailable(Corrosion) corrosion_import_crate(MANIFEST_PATH ${CMAKE_CURRENT_SOURCE_DIR}/libphysis/Cargo.toml FEATURES logging) add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/libphysis/logger)