Skip to content

Commit

Permalink
update linux build to statically link libtdl
Browse files Browse the repository at this point in the history
  • Loading branch information
msuchard committed Jul 14, 2021
1 parent c261f1c commit 791e866
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libhmsbeagle/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ add_library(hmsbeagle SHARED

set_target_properties(hmsbeagle PROPERTIES PUBLIC_HEADER "beagle.h;platform.h")

if(NOT WIN32 AND NOT APPLE)
target_link_libraries(hmsbeagle ${CMAKE_DL_LIBS})
endif(NOT WIN32 AND NOT APPLE)

add_subdirectory(CPU)
add_subdirectory(GPU)
if(BUILD_JNI)
Expand Down

0 comments on commit 791e866

Please sign in to comment.