Skip to content

Commit

Permalink
C-Blosc2: 2.10.2+ Only
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l authored and pnorbert committed Dec 7, 2023
1 parent 78df68f commit ff698a2
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions cmake/DetectOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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_$<IF:$<BOOL:${ADIOS2_Blosc2_PREFER_SHARED}>,shared,static>)
else()
set(adios2_blosc2_tgt Blosc2::blosc2_static)
endif()
if (Blosc2_shlib_available)
set(adios2_blosc2_tgt Blosc2::blosc2_$<IF:$<BOOL:${ADIOS2_Blosc2_PREFER_SHARED}>,shared,static>)
else()
set(adios2_blosc2_tgt Blosc2::blosc2_static)
endif()

add_library(adios2_blosc2 INTERFACE)
Expand Down

0 comments on commit ff698a2

Please sign in to comment.