1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Fix path to 3rdparty cmake.

Current code using CMAKE_SOURCE_DIR and it works well if opencv is standalone CMake project,
but in case of building OpenCV as part of a larger CMake project (e.g. one that includes
opencv and opencv_contrib) this path is incorrect, unlike OpenCV_SOURCE_DIR
This commit is contained in:
stepkamipt
2024-08-02 10:07:36 +02:00
parent b79b366859
commit 340a390ea2
+1 -1
View File
@@ -1,7 +1,7 @@
# --- obsensor ---
if(NOT HAVE_OBSENSOR)
if(OBSENSOR_USE_ORBBEC_SDK)
include(${CMAKE_SOURCE_DIR}/3rdparty/orbbecsdk/orbbecsdk.cmake)
include("${OpenCV_SOURCE_DIR}/3rdparty/orbbecsdk/orbbecsdk.cmake")
download_orbbec_sdk(ORBBEC_SDK_ROOT_DIR)
message(STATUS "ORBBEC_SDK_ROOT_DIR: ${ORBBEC_SDK_ROOT_DIR}")
if(ORBBEC_SDK_ROOT_DIR)