Skip to content

Commit

Permalink
fix: yet another variation on the same theme
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Leprince <[email protected]>
  • Loading branch information
pleprince committed Apr 2, 2024
1 parent 05d9457 commit 9799bf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmake/LibraryDefine.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function(OPENEXR_DEFINE_LIBRARY libname)
message(STATUS ">> BLOSC2_LIB_NAME: ${BLOSC2_LIB_NAME}")
target_include_directories(${objlib} PRIVATE ${BLOSC2_INCLUDE_DIRS})
target_link_directories(${objlib} PRIVATE ${BLOSC2_LIB_DIR})
target_link_libraries(${objlib} PRIVATE "dl" ${BLOSC2_LIB_NAME})
target_link_libraries(${objlib} PRIVATE "dl" ${BLOSC2_LIB_NAME}$<$<CONFIG:Debug>:${CMAKE_DEBUG_POSTFIX}>)
if(TARGET blosc2_static)
install(TARGETS blosc2_static EXPORT ${objlib})
endif()
Expand Down
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 ${blosc2libname}$<$<CONFIG:Debug>:${CMAKE_DEBUG_POSTFIX}>)
set(BLOSC2_LIB_NAME ${blosc2libname})
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 ${blosc2libname}$<$<CONFIG:Debug>:${CMAKE_DEBUG_POSTFIX}>)
set(BLOSC2_LIB_NAME ${blosc2libname})
endif()
endif()

Expand Down

0 comments on commit 9799bf9

Please sign in to comment.