Skip to content

Commit ab9cb1a

Browse files
committed
Fix building without fuzzers/ and perftests/ directory
1 parent cc6de57 commit ab9cb1a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

CMakeLists.txt

+8-5
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,14 @@ if (BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/autotest")
252252
add_subdirectory(autotest)
253253
endif()
254254
endif ()
255-
# Google OSS-Fuzz project utilities
256-
add_subdirectory(fuzzers)
257-
if (BUILD_TESTING)
255+
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/fuzzers")
256+
# Google OSS-Fuzz project utilities
257+
add_subdirectory(fuzzers)
258+
if (BUILD_TESTING)
259+
add_subdirectory(fuzzers/tests)
260+
endif()
261+
endif()
262+
if (BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/perftests")
258263
add_subdirectory(perftests)
259-
# Google OSS-Fuzz tests
260-
add_subdirectory(fuzzers/tests)
261264
endif ()
262265
# vim: ts=4 sw=4 sts=4 et

mkgdaldist.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,9 @@ fi
153153

154154
cd "$CWD"
155155

156-
echo "* Cleaning doc/ and perftests/ under $CWD..."
156+
echo "* Cleaning doc/, fuzzers/ and perftests/ under $CWD..."
157157
rm -rf doc
158+
rm -rf fuzzers
158159
rm -rf perftests
159160

160161
#

0 commit comments

Comments
 (0)