Skip to content

Commit

Permalink
tests: do not compile tests for the uncompressed codec if it is not e…
Browse files Browse the repository at this point in the history
…nabled
  • Loading branch information
farindk committed Oct 16, 2023
1 parent bcb4cb2 commit 5b8c948
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ endmacro()
# --- tests that require access to internal symbols

if (WITH_REDUCED_VISIBILITY)
message("Conversion and JPEG 2000 box unit tests can only be compiled with full symbol visibility (WITH_REDUCED_VISIBILITY=OFF)")
message(WARNING "Conversion and JPEG 2000 box unit tests can only be compiled with full symbol visibility (WITH_REDUCED_VISIBILITY=OFF)")
else()
add_libheif_test(conversion)
add_libheif_test(jpeg2000)
Expand All @@ -26,6 +26,10 @@ endif()

add_libheif_test(encode)
add_libheif_test(region)
add_libheif_test(uncompressed_decode)
add_libheif_test(uncompressed_encode)

if (WITH_UNCOMPRESSED_CODEC)
add_libheif_test(uncompressed_decode)
add_libheif_test(uncompressed_encode)
else()
message(WARNING "Tests of the 'uncompressed codec' are not compiled because the uncompressed codec is not enabled (WITH_UNCOMPRESSED_CODEC==OFF)")
endif ()

0 comments on commit 5b8c948

Please sign in to comment.