Skip to content

Commit

Permalink
fix: debug build was not linking against debug blosc lib, for older c…
Browse files Browse the repository at this point in the history
…make.

Signed-off-by: Philippe Leprince <[email protected]>
  • Loading branch information
pleprince committed Apr 2, 2024
1 parent 88c0348 commit 05d9457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/OpenEXRSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ if(NOT TARGET Blosc2::blosc2_static AND NOT Blosc2_FOUND)
set(BLOSC2_LIB_DIR ${blosc2libdir})

get_target_property(blosc2libname Blosc2::blosc2_static OUTPUT_NAME)
set(BLOSC2_LIB_NAME $<IF:$<CONFIG:Debug>, "${blosc2libname}${CMAKE_DEBUG_POSTFIX}", "${blosc2libname}">)
set(BLOSC2_LIB_NAME ${blosc2libname}$<$<CONFIG:Debug>:${CMAKE_DEBUG_POSTFIX}>)
endif()
else()
message(STATUS "Blosc2: Using installed Blosc2 ${Blosc2_VERSION} from ${Blosc2_DIR}")
Expand All @@ -420,7 +420,7 @@ else()
get_target_property(blosc2libname Blosc2::blosc2_static OUTPUT_NAME)
# fallback because it fails for me but I think it may be a bug.
_error_if_not_found("OUTPUT_NAME" ${blosc2libname} "blosc2")
set(BLOSC2_LIB_NAME $<IF:$<CONFIG:Debug>, "${blosc2libname}${CMAKE_DEBUG_POSTFIX}", "${blosc2libname}">)
set(BLOSC2_LIB_NAME ${blosc2libname}$<$<CONFIG:Debug>:${CMAKE_DEBUG_POSTFIX}>)
endif()
endif()

Expand Down

0 comments on commit 05d9457

Please sign in to comment.