fix FreeBSD build

This commit is contained in:
walker0643
2018-03-02 18:36:31 -05:00
parent c605cbdbcc
commit 625253a7e8
3 changed files with 27 additions and 6 deletions

View File

@@ -40,5 +40,8 @@ endif()
add_library(arch STATIC ${sources})
if (UNIX)
target_link_libraries(arch dl ${libs})
target_link_libraries(arch ${libs})
if (NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
target_link_libraries(arch dl)
endif()
endif()