Skip to content

Commit

Permalink
fix: Replacing "dl" with CMAKE_DL_LIBS to fix windows build
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Leprince <[email protected]>
  • Loading branch information
pleprince committed Apr 5, 2024
1 parent 688d0d6 commit 387d2ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/LibraryDefine.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function(OPENEXR_DEFINE_LIBRARY libname)
message(STATUS ">> BLOSC2_LIB_DIR: ${BLOSC2_LIB_DIR}")
target_include_directories(${objlib} PRIVATE ${BLOSC2_INCLUDE_DIRS})
target_link_directories(${objlib} PRIVATE ${BLOSC2_LIB_DIR})
target_link_libraries(${objlib} PRIVATE Blosc2::blosc2_static "dl")
target_link_libraries(${objlib} PRIVATE Blosc2::blosc2_static ${CMAKE_DL_LIBS})
# install the static library if not using the installed lib.
if(TARGET blosc2_static AND NOT Blosc2_FOUND)
install(TARGETS blosc2_static EXPORT ${objlib})
Expand Down

0 comments on commit 387d2ca

Please sign in to comment.