Skip to content

Commit

Permalink
Search only the Boost Graph Library component (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolodyx authored Jun 13, 2024
1 parent 1a6c9cf commit e3705d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easy3d/algo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e3705d9

Please sign in to comment.