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)