Description: Fix build error with flann 1.9.2. Author: Andreas Metzler Bug-Debian: https://bugs.debian.org/1027934 Origin: vendor Forwarded: no Last-Update: 2023-01-09 --- a/src/hugin_cpfind/cpfind/CMakeLists.txt +++ b/src/hugin_cpfind/cpfind/CMakeLists.txt @@ -1,10 +1,11 @@ add_executable(cpfind PanoDetector.cpp PanoDetectorLogic.cpp TestCode.cpp Utils.cpp main.cpp ImageImport.h KDTree.h KDTreeImpl.h PanoDetector.h PanoDetectorDefs.h TestCode.h Tracer.h Utils.h ) IF(FLANN_FOUND) + target_link_directories(cpfind PRIVATE ${FLANN_LIBRARY_DIRS}) target_link_libraries(cpfind localfeatures ${image_libs} ${common_libs} celeste ${FLANN_LIBRARIES}) ELSE(FLANN_FOUND) target_link_libraries(cpfind localfeatures ${image_libs} ${common_libs} celeste) ENDIF(FLANN_FOUND)