Skip to content

Commit

Permalink
fix(FindFLANN): set(FLANN_FOUND ON) if target already defined
Browse files Browse the repository at this point in the history
Fixes #37

Signed-off-by: Rein Appeldoorn <[email protected]>
  • Loading branch information
reinzor committed Aug 22, 2024
1 parent 20d7c9b commit cae1fe3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/Modules/FindFLANN.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
# Early return if FLANN target is already defined. This makes it safe to run
# this script multiple times.
if(TARGET FLANN::FLANN)
set(FLANN_FOUND ON)
return()
endif()

Expand Down

0 comments on commit cae1fe3

Please sign in to comment.