add pthread dependency for gtest-based tests for non-Windows platforms

This commit is contained in:
erwincoumans
2015-11-24 16:54:04 -08:00
parent 4c3d32bf48
commit 1826f11fbc
2 changed files with 6 additions and 0 deletions

View File

@@ -15,6 +15,9 @@ ADD_DEFINITIONS(-D_VARIADIC_MAX=10)
LINK_LIBRARIES(
BulletInverseDynamicsUtils BulletInverseDynamics Bullet3Common LinearMath gtest
)
IF (NOT WIN32)
LINK_LIBRARIES( pthread )
ENDIF()
ADD_EXECUTABLE(Test_BulletInverseDynamics