From 43d1fe871b40f99d20b2e07fb43b419214b4710f Mon Sep 17 00:00:00 2001 From: Fabien Spindler Date: Tue, 26 Mar 2024 08:14:14 +0100 Subject: [PATCH] Fix build when USE_THREADS is turned off - vpQbSoftHand needs std::thread --- modules/robot/test/qbdevice/testQbSoftHand.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/robot/test/qbdevice/testQbSoftHand.cpp b/modules/robot/test/qbdevice/testQbSoftHand.cpp index 5fe269e695..d0e5e7408e 100644 --- a/modules/robot/test/qbdevice/testQbSoftHand.cpp +++ b/modules/robot/test/qbdevice/testQbSoftHand.cpp @@ -46,7 +46,7 @@ int main() { -#ifdef VISP_HAVE_QBDEVICE +#if defined(VISP_HAVE_QBDEVICE) && defined(VISP_HAVE_THREADS) std::cout << "Test qbSoftHand device" << std::endl; try { vpQbSoftHand qbsofthand; @@ -94,7 +94,8 @@ int main() } } std::cout << "The end" << std::endl; - } catch (const vpException &e) { + } + catch (const vpException &e) { std::cout << "Catch exception: " << e.getStringMessage() << std::endl; } #else