diff --git a/plugins/graph_algorithm/CMakeLists.txt b/plugins/graph_algorithm/CMakeLists.txt index 5db5f4a6c1a..c5ddc362014 100644 --- a/plugins/graph_algorithm/CMakeLists.txt +++ b/plugins/graph_algorithm/CMakeLists.txt @@ -14,6 +14,8 @@ if(PL_GRAPH_ALGORITHM OR BUILD_ALL_PLUGINS) LINK_LIBRARIES PUBLIC ${igraph_LIBRARIES} ) -add_dependencies(graph_algorithm igraph_0_10) +if(USE_VENDORED_IGRAPH) + add_dependencies(graph_algorithm igraph_0_10) +endif() endif()