From e40d34f2504cf76d9dcf45ff3ba7eb1657be5901 Mon Sep 17 00:00:00 2001 From: Vladimir Lazarev <11465238+wolodyx@users.noreply.github.com> Date: Thu, 13 Jun 2024 11:16:07 +0300 Subject: [PATCH] Search only the Boost Graph Library component --- 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)