Skip to content

Commit

Permalink
disable test if zlib is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 29, 2024
1 parent 3f7cf77 commit 474d68b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ endif()

if (WITH_UNCOMPRESSED_CODEC)
add_libheif_test(uncompressed_decode)
add_libheif_test(uncompressed_decode_generic_compression)
add_libheif_test(uncompressed_decode_mono)
add_libheif_test(uncompressed_decode_rgb)
add_libheif_test(uncompressed_decode_rgb16)
Expand All @@ -81,6 +80,12 @@ if (WITH_UNCOMPRESSED_CODEC)
add_libheif_test(uncompressed_decode_ycbcr420)
add_libheif_test(uncompressed_decode_ycbcr422)
add_libheif_test(uncompressed_encode)

if (ZLIB_FOUND)
add_libheif_test(uncompressed_decode_generic_compression)
else()
message(WARNING "Generic compress tests of the 'uncompressed codec' are not compiled because zlib was not found")
endif ()
else()
message(WARNING "Tests of the 'uncompressed codec' are not compiled because the uncompressed codec is not enabled (WITH_UNCOMPRESSED_CODEC==OFF)")
endif ()
Expand Down

0 comments on commit 474d68b

Please sign in to comment.