1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Description: Fix build error with flann 1.9.2.
Author: Andreas Metzler <ametzler@debian.org>
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)
|