]> granicus.if.org Git - graphviz/commitdiff
disambiguate lib/ingraphs/*.c #includes
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 18 Aug 2020 02:12:16 +0000 (19:12 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 10 Sep 2020 02:26:51 +0000 (19:26 -0700)
Related to #1785.

lib/ingraphs/CMakeLists.txt
lib/ingraphs/Makefile.am
lib/ingraphs/ingraphs.c
lib/ingraphs/ingraphs.vcxproj

index 547b97c57e86d312cd4ded1910c1e377a1f8eb01..4fee0180aea1d16cf1bbebf47b714dd5c1a69c54 100644 (file)
@@ -1,9 +1,3 @@
-include_directories(
-    ${CMAKE_CURRENT_SOURCE_DIR}
-    ${GRAPHVIZ_LIB_DIR}/cdt
-    ${GRAPHVIZ_LIB_DIR}/cgraph
-)
-
 add_library(ingraphs STATIC
     # Header files
     ingraphs.h
@@ -11,3 +5,10 @@ add_library(ingraphs STATIC
     # Source files
     ingraphs.c
 )
+
+target_include_directories(ingraphs PRIVATE
+    ${GRAPHVIZ_LIB_DIR}
+    ${CMAKE_CURRENT_SOURCE_DIR}
+    ${GRAPHVIZ_LIB_DIR}/cdt
+    ${GRAPHVIZ_LIB_DIR}/cgraph
+)
index 90d444a9c66e8a9cd9c937923fc4f3a7b24d4939..c25abcd591ba58f4b5638d5ef208b62ae0665867 100644 (file)
@@ -2,6 +2,7 @@
 ## Process this file with automake to produce Makefile.in
 
 AM_CPPFLAGS = \
+       -I$(top_srcdir)/lib \
         -I$(top_srcdir)/lib/cgraph \
        -I$(top_srcdir)/lib/cdt 
 
index 7f0c6fb11f28a05fe9733a46f359e49ded792564..bab9bc60bacec565daedfb7739e502b3a9fd4839 100644 (file)
@@ -27,7 +27,7 @@ typedef struct {
 
 extern void agsetfile(char *);
 
-#include "ingraphs.h"
+#include <ingraphs/ingraphs.h>
 
 /* nextFile:
  * Set next available file.
index 4ee57d5af4765049adec51d655e1eba74fa9d1c2..48d32f4affc53c896676c84a8e2fdb2207fa9d97 100644 (file)
@@ -59,7 +59,7 @@
       <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
       <EnablePREfast>true</EnablePREfast>
       <DisableSpecificWarnings>4996</DisableSpecificWarnings>
-      <AdditionalIncludeDirectories>$(SolutionDir)windows\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir)lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     </ClCompile>
     <Lib />
   </ItemDefinitionGroup>
@@ -70,7 +70,7 @@
       <WarningLevel>Level4</WarningLevel>
       <EnablePREfast>true</EnablePREfast>
       <DisableSpecificWarnings>4996</DisableSpecificWarnings>
-      <AdditionalIncludeDirectories>$(SolutionDir)windows\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+      <AdditionalIncludeDirectories>$(SolutionDir)windows\include;$(SolutionDir)lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
     </ClCompile>
     <Lib />
   </ItemDefinitionGroup>