From f84225c09c2619ecca147d5a0034ff99d8c5d43b Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 20 Feb 2022 10:33:45 +0100 Subject: [PATCH] cgraph++: include cgraph.h without the cgraph directory prefix in AGraph.h This makes it possible to use AGraph.h from the install directory where cgraph.h is not located under this prefix. Towards https://gitlab.com/graphviz/graphviz/-/issues/2196. --- lib/cgraph++/AGraph.h | 2 +- lib/cgraph++/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cgraph++/AGraph.h b/lib/cgraph++/AGraph.h index 16d77343a..03eb11654 100644 --- a/lib/cgraph++/AGraph.h +++ b/lib/cgraph++/AGraph.h @@ -3,7 +3,7 @@ #include #include -#include +#include #ifdef GVDLL #if cgraph___EXPORTS // CMake's substitution of cgraph++_EXPORTS diff --git a/lib/cgraph++/CMakeLists.txt b/lib/cgraph++/CMakeLists.txt index 1f0b72525..de8962125 100644 --- a/lib/cgraph++/CMakeLists.txt +++ b/lib/cgraph++/CMakeLists.txt @@ -8,6 +8,7 @@ set_property(TARGET cgraph++ PROPERTY CXX_STANDARD_REQUIRED ON) target_include_directories(cgraph++ PRIVATE ${GRAPHVIZ_LIB_DIR} ${GRAPHVIZ_LIB_DIR}/cdt + ${GRAPHVIZ_LIB_DIR}/cgraph ${CMAKE_CURRENT_SOURCE_DIR} ) -- 2.40.0