Commit d3a440ca19b060ed69fcb7bb08d2d0fad9a4559d

Edward Thomson 2019-01-13T10:50:13

fuzzers: use system includes Use the system includes (defined by libgit2) as the fuzzer includes. The fuzzers link against internal libgit2 API and therefore need to have the full include path that libgit2 uses.

1
2
3
4
5
6
7
8
9
10
11
diff --git a/fuzzers/CMakeLists.txt b/fuzzers/CMakeLists.txt
index ea06123..1c03aa9 100644
--- a/fuzzers/CMakeLists.txt
+++ b/fuzzers/CMakeLists.txt
@@ -1,5 +1,6 @@
 LINK_DIRECTORIES(${LIBGIT2_LIBDIRS})
 INCLUDE_DIRECTORIES(${LIBGIT2_INCLUDES})
+INCLUDE_DIRECTORIES(SYSTEM ${LIBGIT2_SYSTEM_INCLUDES})
 
 IF(BUILD_FUZZERS AND NOT USE_STANDALONE_FUZZERS)
 	ADD_C_FLAG(-fsanitize=fuzzer)