Skip to content

Commit

Permalink
Merge pull request ornladios#3767 from vicentebolea/correct-blosc-pre…
Browse files Browse the repository at this point in the history
…fer-shared

cmake: correct ADIOS2_Blosc2_PREFER_SHARED behavior
  • Loading branch information
vicentebolea authored Aug 22, 2023
2 parents 06c8fec + 3ffc8e4 commit 8706b56
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 8706b56

Please sign in to comment.