Skip to content

Commit d3a440c

Browse files
committed
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 parent 02683b2 commit d3a440c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fuzzers/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
LINK_DIRECTORIES(${LIBGIT2_LIBDIRS})
22
INCLUDE_DIRECTORIES(${LIBGIT2_INCLUDES})
3+
INCLUDE_DIRECTORIES(SYSTEM ${LIBGIT2_SYSTEM_INCLUDES})
34

45
IF(BUILD_FUZZERS AND NOT USE_STANDALONE_FUZZERS)
56
ADD_C_FLAG(-fsanitize=fuzzer)

0 commit comments

Comments
 (0)