Skip to content

Commit

Permalink
add the missing dl lib for extensions test
Browse files Browse the repository at this point in the history
  • Loading branch information
wenbingl committed Sep 4, 2024
1 parent 7915a30 commit bf7fddc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/ext_tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ if (OCOS_BUILD_SHARED_LIB)
list(APPEND extensions_test_libraries stdc++fs -pthread)
endif()

if (NOT MSVC)
list(APPEND extensions_test_libraries ${CMAKE_DL_LIBS})
endif()

add_test_target(TARGET extensions_test
TEST_SOURCES ${shared_TEST_SRC}
LIBRARIES ${extensions_test_libraries}
Expand Down

0 comments on commit bf7fddc

Please sign in to comment.