From 0e204061ccd99507b7ea76380e953b0ff527cd5d Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 9 Nov 2023 16:41:22 -0800 Subject: [PATCH] C-Blosc2: 2.10.2+ Only --- cmake/DetectOptions.cmake | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/cmake/DetectOptions.cmake b/cmake/DetectOptions.cmake index efecb57624..f780280521 100644 --- a/cmake/DetectOptions.cmake +++ b/cmake/DetectOptions.cmake @@ -73,15 +73,15 @@ find_package(Threads REQUIRED) # Blosc2 if(ADIOS2_USE_Blosc2 STREQUAL AUTO) # Prefect CONFIG mode - find_package(Blosc2 2.4 CONFIG QUIET) + find_package(Blosc2 2.10.2 CONFIG QUIET) if(NOT Blosc2_FOUND) - find_package(Blosc2 2.4 MODULE QUIET) + find_package(Blosc2 2.10.2 MODULE QUIET) endif() elseif(ADIOS2_USE_Blosc2) # Prefect CONFIG mode - find_package(Blosc2 2.4 CONFIG) + find_package(Blosc2 2.10.2 CONFIG) if(NOT Blosc2_FOUND) - find_package(Blosc2 2.4 MODULE REQUIRED) + find_package(Blosc2 2.10.2 MODULE REQUIRED) endif() endif() if(Blosc2_FOUND) @@ -91,12 +91,10 @@ if(Blosc2_FOUND) endif() set(adios2_blosc2_tgt Blosc2::Blosc2) - if (Blosc2_VERSION VERSION_GREATER_EQUAL 2.10.1) - if (Blosc2_shlib_available) - set(adios2_blosc2_tgt Blosc2::blosc2_$,shared,static>) - else() - set(adios2_blosc2_tgt Blosc2::blosc2_static) - endif() + if (Blosc2_shlib_available) + set(adios2_blosc2_tgt Blosc2::blosc2_$,shared,static>) + else() + set(adios2_blosc2_tgt Blosc2::blosc2_static) endif() add_library(adios2_blosc2 INTERFACE)