From 459f9b2eb451d17675a9231d7b032580ad5ac89e Mon Sep 17 00:00:00 2001 From: John Wason Date: Thu, 9 Jan 2025 21:49:26 -0500 Subject: [PATCH] Restore boost-stacktrace changes --- tesseract_common/CMakeLists.txt | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/tesseract_common/CMakeLists.txt b/tesseract_common/CMakeLists.txt index 02dd304bd42..8636d8c68ac 100644 --- a/tesseract_common/CMakeLists.txt +++ b/tesseract_common/CMakeLists.txt @@ -12,12 +12,22 @@ endif() include(cmake/tesseract_macros.cmake) list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/") -find_package( - Boost REQUIRED - COMPONENTS system - filesystem - serialization - stacktrace_noop) +if(NOT APPLE) + find_package( + Boost REQUIRED + COMPONENTS system + filesystem + serialization + stacktrace_noop + OPTIONAL_COMPONENTS stacktrace_backtrace stacktrace_basic) +else() + find_package( + Boost REQUIRED + COMPONENTS system + filesystem + serialization + stacktrace_noop) +endif() find_package(Eigen3 REQUIRED) find_package(TinyXML2 REQUIRED) find_package(yaml-cpp REQUIRED)