From fe1fe74719ab4fef873a22e2b28cce0c57d570e0 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sun, 3 Nov 2024 16:39:38 +0000 Subject: [PATCH] fix building with system igraph --- plugins/graph_algorithm/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()