From 93f9bfd64eae8031c4b9995585dc390981fabe4a Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sun, 20 Feb 2022 10:35:39 +0100 Subject: [PATCH] gvc++: include AGraph.h without the cgraph++ directory prefix in GVLayout.h This makes it possible to use GVLayout.h from the install directory where AGraph.h is not located under this prefix. Towards https://gitlab.com/graphviz/graphviz/-/issues/2196. --- lib/gvc++/CMakeLists.txt | 1 + lib/gvc++/GVLayout.h | 2 +- tests/CMakeLists.txt | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/gvc++/CMakeLists.txt b/lib/gvc++/CMakeLists.txt index 4e84ab19e..3ffe9bede 100644 --- a/lib/gvc++/CMakeLists.txt +++ b/lib/gvc++/CMakeLists.txt @@ -15,6 +15,7 @@ target_include_directories(gvc++ PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${GRAPHVIZ_LIB_DIR}/cdt ${GRAPHVIZ_LIB_DIR}/cgraph + ${GRAPHVIZ_LIB_DIR}/cgraph++ ${GRAPHVIZ_LIB_DIR}/common ${GRAPHVIZ_LIB_DIR}/gvc ${GRAPHVIZ_LIB_DIR}/pathplan diff --git a/lib/gvc++/GVLayout.h b/lib/gvc++/GVLayout.h index defe72efe..aee993596 100644 --- a/lib/gvc++/GVLayout.h +++ b/lib/gvc++/GVLayout.h @@ -4,7 +4,7 @@ #include "GVContext.h" #include "GVRenderData.h" -#include +#include #ifdef GVDLL #if gvc___EXPORTS // CMake's substitution of gvc++_EXPORTS diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 6da9e513f..dbc4ba9f2 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -51,6 +51,7 @@ macro(CREATE_TEST testname) ${GRAPHVIZ_LIB_DIR} ${GRAPHVIZ_LIB_DIR}/cdt ${GRAPHVIZ_LIB_DIR}/cgraph + ${GRAPHVIZ_LIB_DIR}/cgraph++ ${GRAPHVIZ_LIB_DIR}/common ${GRAPHVIZ_LIB_DIR}/gvc ${GRAPHVIZ_LIB_DIR}/pathplan -- 2.40.0