Fixed Windows build with flann<1.8

This commit is contained in:
matlabbe
2015-09-09 16:36:59 -04:00
parent e78071b427
commit acc47fa9a9
3 changed files with 77 additions and 9 deletions

View File

@@ -59,7 +59,9 @@ find_package_handle_standard_args(FLANN DEFAULT_MSG FLANN_LIBRARY FLANN_INCLUDE_
mark_as_advanced(FLANN_LIBRARY FLANN_LIBRARY_DEBUG FLANN_INCLUDE_DIR)
if(FLANN_FOUND)
message(STATUS "FLANN found (include: ${FLANN_INCLUDE_DIRS}, lib: ${FLANN_LIBRARIES})")
IF (NOT FLANN_FIND_QUIETLY)
message(STATUS "FLANN found (include: ${FLANN_INCLUDE_DIRS}, lib: ${FLANN_LIBRARIES})")
ENDIF (NOT FLANN_FIND_QUIETLY)
if(FLANN_USE_STATIC)
add_definitions(-DFLANN_STATIC)
endif(FLANN_USE_STATIC)