diff --git a/examples/RobotSimulator/CMakeLists.txt b/examples/RobotSimulator/CMakeLists.txt index cb06becbd..2117dd332 100644 --- a/examples/RobotSimulator/CMakeLists.txt +++ b/examples/RobotSimulator/CMakeLists.txt @@ -109,6 +109,11 @@ IF(WIN32) IF(BUILD_ENET OR BUILD_CLSOCKET) TARGET_LINK_LIBRARIES(App_RobotSimulator_NoGUI ws2_32 ) ENDIF(BUILD_ENET OR BUILD_CLSOCKET) +ELSE() + IF(APPLE) + ELSE(APPLE) + LINK_LIBRARIES( pthread ${DL} ) + ENDIF(APPLE) ENDIF(WIN32) TARGET_LINK_LIBRARIES(App_RobotSimulator_NoGUI BulletRobotics BulletFileLoader BulletWorldImporter BulletSoftBody BulletDynamics BulletCollision BulletInverseDynamicsUtils BulletInverseDynamics LinearMath Bullet3Common)