mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-06-13 10:49:22 +00:00
link against pthreads using cmake when building under Linux, shared libs
(linking against pthreads is just a workaround for buggy NVidia drivers that require it)
This commit is contained in:
@@ -53,6 +53,13 @@ endif ()
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
target_link_libraries(OpenGLWindow Bullet3Common)
|
||||
if (WIN32 OR APPLE)
|
||||
target_link_libraries(OpenGLWindow ${OPENGL_gl_LIBRARY})
|
||||
else()
|
||||
set (CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
||||
FIND_PACKAGE(Threads)
|
||||
target_link_libraries(OpenGLWindow ${CMAKE_THREAD_LIBS_INIT})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
target_link_libraries(OpenGLWindow ${OPENGL_gl_LIBRARY})
|
||||
#target_link_libraries(OpenGLWindow ${OPENGL_gl_LIBRARY})
|
||||
|
||||
Reference in New Issue
Block a user