mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +08:00
Fixed Windows build with flann<1.8
This commit is contained in:
+5
-2
@@ -132,8 +132,11 @@ option(WITH_GTSAM "Include GTSAM support" ON)
|
||||
option(WITH_CVSBA "Include cvsba support" ON)
|
||||
option(WITH_FLYCAPTURE2 "Include FlyCapture2/Triclops support" ON)
|
||||
|
||||
FIND_PACKAGE(FLANN 1.8)
|
||||
SET(FLANN18_FOUND ${FLANN_FOUND})
|
||||
find_package(PkgConfig QUIET)
|
||||
FIND_PACKAGE(FLANN 1.8 QUIET)
|
||||
IF(PkgConfig_FOUND AND FLANN_FOUND)
|
||||
SET(FLANN18_FOUND TRUE)
|
||||
ENDIF(PkgConfig_FOUND AND FLANN_FOUND)
|
||||
|
||||
FIND_PACKAGE(OpenCV REQUIRED)
|
||||
FIND_PACKAGE(PCL 1.7 REQUIRED) # Will find FLANN too
|
||||
|
||||
Reference in New Issue
Block a user