Skip to content

Commit

Permalink
[cmake] Fix building on OpenBSD
Browse files Browse the repository at this point in the history
OpenBSD does not have libdl.
  • Loading branch information
brad0 committed Dec 19, 2024
1 parent 22da087 commit 40c29bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ target_link_libraries(libneko ${GC_LIBRARIES})
target_link_libraries(nekovm libneko)

if(UNIX)
if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
set(DL_LIB "dl")
endif()
find_package(Threads)
Expand Down

0 comments on commit 40c29bd

Please sign in to comment.