Fix two build configure errors in tests (#616)

tests/webp/bug_double_free should depend on webp and jpeg.
tests/gdimagesquaretocircle should depend on png.
master
wilson chen 2020-03-28 22:29:35 +08:00 committed by GitHub
parent c2a2947675
commit aa90da2db1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,7 @@
if HAVE_LIBPNG
libgd_test_programs += \
gdimagesquaretocircle/gdimagesquaretocircle
endif
EXTRA_DIST += \
gdimagesquaretocircle/CMakeLists.txt \

View File

@ -1,9 +1,13 @@
IF(WEBP_FOUND)
LIST(APPEND TESTS_FILES
bug00111
bug_double_free
gdImageWebpEx
)
IF(JPEG_FOUND)
LIST(APPEND TESTS_FILES
bug_double_free
)
ENDIF(JPEG_FOUND)
ENDIF(WEBP_FOUND)
ADD_GD_TESTS()

View File

@ -1,8 +1,11 @@
if HAVE_LIBWEBP
libgd_test_programs += \
webp/bug00111 \
webp/bug_double_free \
webp/gdImageWebpEx
if HAVE_LIBJPEG
libgd_test_programs += \
webp/bug_double_free
endif
endif
EXTRA_DIST += \