Skip to content

Commit

Permalink
Fix building without fuzzers/ and perftests/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed May 2, 2023
1 parent cc6de57 commit ab9cb1a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
13 changes: 8 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,14 @@ if (BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/autotest")
add_subdirectory(autotest)
endif()
endif ()
# Google OSS-Fuzz project utilities
add_subdirectory(fuzzers)
if (BUILD_TESTING)
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/fuzzers")
# Google OSS-Fuzz project utilities
add_subdirectory(fuzzers)
if (BUILD_TESTING)
add_subdirectory(fuzzers/tests)
endif()
endif()
if (BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/perftests")
add_subdirectory(perftests)
# Google OSS-Fuzz tests
add_subdirectory(fuzzers/tests)
endif ()
# vim: ts=4 sw=4 sts=4 et
3 changes: 2 additions & 1 deletion mkgdaldist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,9 @@ fi

cd "$CWD"

echo "* Cleaning doc/ and perftests/ under $CWD..."
echo "* Cleaning doc/, fuzzers/ and perftests/ under $CWD..."
rm -rf doc
rm -rf fuzzers
rm -rf perftests

#
Expand Down

0 comments on commit ab9cb1a

Please sign in to comment.