upstream: non-internal support: plfit
authorJerome Benoit <calculus@rezozer.net>
Sat, 8 Jan 2022 20:50:51 +0000 (20:50 +0000)
committerAndreas Tille <tille@debian.org>
Sat, 8 Jan 2022 20:50:51 +0000 (20:50 +0000)
Origin: debian
Forwarded: https://github.com/igraph/igraph/pull/1921
Last-Update: 2022-01-06

This patch specify the folder of the `plfit` headers.
It is meant to be submitted to the upstream maintainer.

Gbp-Pq: Name upstream-external-plfit.patch

etc/cmake/FindPLFIT.cmake
tests/benchmarks/igraph_power_law_fit.c

index 666464b4c285d0647bb429b212118a060c08a2dc..01369377f0776a018e92302b3952743982d69bb2 100644 (file)
@@ -10,6 +10,7 @@
 
 find_path(PLFIT_INCLUDE_DIR
   NAMES plfit.h
+  PATH_SUFFIXES plfit
 )
 
 find_library(PLFIT_LIBRARY
index 4e2b699017eae8e56af8f64692ddd6f563e3a80b..7e5b7d0084559f2fa4479c4f244b2fd3c781618b 100644 (file)
@@ -1,5 +1,5 @@
 #include <igraph.h>
-#include <plfit_sampling.h>
+#include <plfit/plfit_sampling.h>
 
 #include "bench.h"