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:
matlabbe
2016-10-31 14:28:17 -04:00
parent 2529952982
commit f07bb17442
2 changed files with 8 additions and 8 deletions

View File

@@ -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)