Skip to content

Commit

Permalink
cmake: Fix linking on OpenBSD
Browse files Browse the repository at this point in the history
OpenBSD does not have librt.
  • Loading branch information
brad0 authored and ddennedy committed Jun 28, 2024
1 parent 15a46c9 commit 3c67b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/plusgpl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ target_link_libraries(mltplusgpl PRIVATE mlt m Threads::Threads)

if(WIN32)
target_link_libraries(mltplusgpl PRIVATE ws2_32)
elseif(UNIX AND NOT APPLE AND NOT ANDROID)
elseif(UNIX AND NOT APPLE AND NOT ANDROID AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
target_link_libraries(mltplusgpl PRIVATE rt)
endif()

Expand Down

0 comments on commit 3c67b94

Please sign in to comment.