Skip to content

Commit

Permalink
cmake: correct prefer_shared_blosc behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
vicentebolea committed Aug 22, 2023
1 parent 06c8fec commit 3ffc8e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/DetectOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ if(Blosc2_FOUND)

set(adios2_blosc2_tgt Blosc2::Blosc2)
if (Blosc2_VERSION VERSION_GREATER_EQUAL 2.10.1)
set(adios2_blosc2_tgt Blosc2::blosc2_$<IF:$<BOOL:${ADIOS2_Blosc2_PREFER_SHARED}>,shared,static>)
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()
endif()

add_library(adios2_blosc2 INTERFACE)
Expand Down

0 comments on commit 3ffc8e4

Please sign in to comment.