From e3705d989f5d14559b428b489c5fe6d503a3ba1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80?= <11465238+wolodyx@users.noreply.github.com> Date: Thu, 13 Jun 2024 13:42:46 +0300 Subject: [PATCH] Search only the Boost Graph Library component (#187) --- easy3d/algo/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy3d/algo/CMakeLists.txt b/easy3d/algo/CMakeLists.txt index ee00e5e0..a0b95f4d 100755 --- a/easy3d/algo/CMakeLists.txt +++ b/easy3d/algo/CMakeLists.txt @@ -80,7 +80,7 @@ add_module(${module} "${${module}_headers}" "${${module}_sources}" "${private_de target_include_directories(easy3d_${module} PRIVATE ${Easy3D_THIRD_PARTY}/eigen ${Easy3D_THIRD_PARTY}/ransac) # It's "Boost", not "BOOST" or "boost". Case matters. -find_package(Boost) +find_package(Boost COMPONENTS graph) if (Boost_FOUND) target_include_directories(easy3d_${module} PRIVATE ${Boost_INCLUDE_DIRS}) target_compile_definitions(easy3d_${module} PRIVATE HAS_BOOST)