From 2c941f9477b00959dbabdb49b70b674836b23246 Mon Sep 17 00:00:00 2001 From: asahtik Date: Mon, 15 Apr 2024 13:45:11 +0200 Subject: [PATCH] Fail loudly if PCL enabled, README changes --- README.md | 1 + cmake/depthaiDependencies.cmake | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dea998c7b..845f51770 100644 --- a/README.md +++ b/README.md @@ -195,6 +195,7 @@ The following environment variables can be set to alter default behavior of the | DEPTHAI_LIBUSB_ANDROID_JAVAVM | JavaVM pointer that is passed to libusb for rootless Android interaction with devices. Interpreted as decimal value of uintptr_t | | DEPTHAI_CRASHDUMP | Directory in which to save the crash dump. | | DEPTHAI_CRASHDUMP_TIMEOUT | Specifies the duration in seconds to wait for device reboot when obtaining a crash dump. Crash dump retrieval disabled if 0. | +| DEPTHAI_PCL_SUPPORT | Enables PCL support. | ## Running tests diff --git a/cmake/depthaiDependencies.cmake b/cmake/depthaiDependencies.cmake index c59ddabd8..e8b1b1955 100644 --- a/cmake/depthaiDependencies.cmake +++ b/cmake/depthaiDependencies.cmake @@ -92,14 +92,14 @@ if(DEPTHAI_OPENCV_SUPPORT) endif() if(DEPTHAI_PCL_SUPPORT AND NOT TARGET JsonCpp::JsonCpp) - find_package(jsoncpp QUIET) + find_package(jsoncpp) endif() set(MODULE_TEMP ${CMAKE_MODULE_PATH}) set(PREFIX_TEMP ${CMAKE_PREFIX_PATH}) set(CMAKE_MODULE_PATH ${_DEPTHAI_MODULE_PATH_ORIGINAL}) set(CMAKE_PREFIX_PATH ${_DEPTHAI_PREFIX_PATH_ORIGINAL}) if(DEPTHAI_PCL_SUPPORT) - find_package(PCL QUIET CONFIG COMPONENTS common visualization) + find_package(PCL CONFIG COMPONENTS common visualization) endif() set(CMAKE_MODULE_PATH ${MODULE_TEMP}) set(CMAKE_PREFIX_PATH ${PREFIX_TEMP})