From b15ac0c5f63a521beaac926fc4718e6f7cc28bc5 Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Fri, 2 Feb 2018 19:12:02 -0800 Subject: [PATCH] add pthread/DL to App_RobotSimulator_NoGUI for Linux (not Win32/Apple) --- examples/RobotSimulator/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) 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)