Skip to content

Commit

Permalink
Merge pull request #598 from devnexen/bsd_build
Browse files Browse the repository at this point in the history
BSD (in general) build fixes.
  • Loading branch information
s3rvac authored Jun 26, 2019
2 parents bebaf4d + dbc1ef5 commit 62db217
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deps/llvm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,12 @@ if(CMAKE_THREAD_LIBS_INIT)
endif()

if(UNIX)
target_link_libraries(llvm INTERFACE debug ${ZLIB_LIBRARIES} dl)
target_link_libraries(llvm INTERFACE optimized ${ZLIB_LIBRARIES} dl)
set(EXECINFO "")
if (${CMAKE_SYSTEM_NAME} MATCHES "BSD")
set(EXECINFO "execinfo")
endif()
target_link_libraries(llvm INTERFACE debug ${ZLIB_LIBRARIES} ${CMAKE_DL_LIBS} ${EXECINFO})
target_link_libraries(llvm INTERFACE optimized ${ZLIB_LIBRARIES} ${CMAKE_DL_LIBS} ${EXECINFO})
endif()

# Set include directories.
Expand Down

0 comments on commit 62db217

Please sign in to comment.