mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Find/Link explicitly OpenCL libraries if Freenect2 is detected (moved in main CMakeLists.txt to be added to exported in RTABMapConfig.cmake)
This commit is contained in:
@@ -140,14 +140,6 @@ IF(freenect2_FOUND)
|
||||
${LIBRARIES}
|
||||
${freenect2_LIBRARIES}
|
||||
)
|
||||
# Explicitly link to OpenCL (in case of CUDA installed)
|
||||
FIND_PACKAGE(OpenCL QUIET)
|
||||
IF(OpenCL_FOUND)
|
||||
SET(LIBRARIES
|
||||
${OpenCL_LIBRARIES}
|
||||
${LIBRARIES}
|
||||
)
|
||||
ENDIF(OpenCL_FOUND)
|
||||
ENDIF(freenect2_FOUND)
|
||||
|
||||
IF(RealSense_FOUND)
|
||||
|
||||
Reference in New Issue
Block a user