From 1e782f04b7672e343cef28fd803f55225036a091 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Mon, 4 Mar 2024 21:25:33 +0100 Subject: [PATCH] building plugin 3DMASC on macOS, without OpenMP --- q3DMASCTools.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/q3DMASCTools.cpp b/q3DMASCTools.cpp index 7ceb73f..e66d348 100644 --- a/q3DMASCTools.cpp +++ b/q3DMASCTools.cpp @@ -1387,7 +1387,11 @@ bool Tools::PrepareFeatures(const CorePoints& corePoints, Feature::Set& features { cancelled = true; success = false; +#if defined(_OPENMP) errorStr = "Feature computation failed for point " + QString::number(i) + " (using OpenMP with " + QString::number(omp_get_num_threads()) + " threads)"; +#else + errorStr = "Feature computation failed for point " + QString::number(i); +#endif ccLog::Error(localErrorStr); } @@ -1399,7 +1403,11 @@ bool Tools::PrepareFeatures(const CorePoints& corePoints, Feature::Set& features if (cancelled) { //process cancelled by the user +#if defined(_OPENMP) errorStr = "Process cancelled at point " + QString::number(i) + " (using OpenMP with " + QString::number(omp_get_num_threads()) + " threads)"; +#else + errorStr = "Process cancelled at point " + QString::number(i); +#endif ccLog::Warning(errorStr); success = false; }