diff --git a/CMakeLists.txt b/CMakeLists.txt index 3fa051e07..7dffb90aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -195,13 +195,7 @@ cmake_dependent_option(ENABLE_NETDATA_JOURNAL_FILE_READER "Enable netdata's jour # Setup Rust/Corrosion for plugins that need it if(ENABLE_NETDATA_JOURNAL_FILE_READER OR ENABLE_PLUGIN_OTEL OR ENABLE_PLUGIN_OTEL_SIGNAL_VIEWER) - include(FetchContent) - FetchContent_Declare( - Corrosion - GIT_REPOSITORY https://github.com/netdata/corrosion.git - GIT_TAG f3b91559efca32c6b54837866ef35ba98ff5b2ca # stable/v0.5 - ) - FetchContent_MakeAvailable(Corrosion) + find_package(Corrosion REQUIRED) if(ENABLE_NETDATA_JOURNAL_FILE_READER) corrosion_import_crate(MANIFEST_PATH src/crates/jf/Cargo.toml