#6373 Fixed compile error on BSD. Cherry picked from 94eb69eb

This commit is contained in:
Yuri 2018-02-24 18:15:30 -08:00 committed by Jamie Newbon
parent 7fb4805521
commit 751fcffc87
No known key found for this signature in database
GPG Key ID: 9618C9BB2FF44DB5
1 changed files with 1 additions and 1 deletions

View File

@ -40,5 +40,5 @@ endif()
add_library(arch STATIC ${sources})
if (UNIX)
target_link_libraries(arch dl ${libs})
target_link_libraries(arch ${CMAKE_DL_LIBS} ${libs})
endif()