ports/graphics/opensubdiv/patches/patch-cmake_FindGLFW_cmake

14 lines
743 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
-lrt and -ldl not supported on OpenBSD
--- cmake/FindGLFW.cmake.orig Sun Dec 13 23:02:51 2020
+++ cmake/FindGLFW.cmake Sun Dec 13 23:03:33 2020
@@ -174,7 +174,7 @@ else ()
message(FATAL_ERROR "Xi library not found - required for GLFW")
endif()
- list(APPEND GLFW_x11_LIBRARY "${X11_Xrandr_LIB}" "${X11_Xxf86vm_LIB}" "${X11_Xcursor_LIB}" "${X11_Xinerama_LIB}" "${X11_Xi_LIB}" "${X11_LIBRARIES}" "${CMAKE_THREAD_LIBS_INIT}" -lrt -ldl)
+ list(APPEND GLFW_x11_LIBRARY "${X11_Xrandr_LIB}" "${X11_Xxf86vm_LIB}" "${X11_Xcursor_LIB}" "${X11_Xinerama_LIB}" "${X11_Xi_LIB}" "${X11_LIBRARIES}" "${CMAKE_THREAD_LIBS_INIT}")
endif (NOT NO_GLFW_X11)
find_library( GLFW_glfw_LIBRARY