diff --git a/cmake/DetectOptions.cmake b/cmake/DetectOptions.cmake index d66e096bda..c46bb9849c 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)