Skip to content

Commit

Permalink
TIFF: Fix empty list of compressions in VCPKG mode
Browse files Browse the repository at this point in the history
  • Loading branch information
HappySeaFox committed Feb 23, 2023
1 parent 3923101 commit 54c1e77
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/sail-codecs/tiff/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,28 +96,28 @@ foreach (tiff_codec IN LISTS TIFF_CODECS)
HAVE_TIFF_WRITE_${tiff_codec}
)
cmake_pop_check_state()
endif()

if (HAVE_TIFF_WRITE_${tiff_codec})
# Match the SAIL namings
#
string(REPLACE "_" "-" tiff_codec_fixed ${tiff_codec})
string(REPLACE "CCITTRLE" "CCITT-RLE" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "CCITTRLEW" "CCITT-RLEW" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "IT8BL" "IT8-BL" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "IT8CTPAD" "IT8-CTPAD" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "IT8LW" "IT8-LW" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "IT8MP" "IT8-MP" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "JP2000" "JPEG-2000" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "JXL" "JPEG-XL" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "PIXARLOG" "PIXAR-LOG" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "PIXARFILM" "PIXAR-FILM" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "SGILOG24" "SGI-LOG24" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "SGILOG" "SGI-LOG" tiff_codec_fixed ${tiff_codec_fixed})

# Used in .codec.info
#
list(APPEND TIFF_CODEC_INFO_COMPRESSIONS ${tiff_codec_fixed})
endif()
if (HAVE_TIFF_WRITE_${tiff_codec})
# Match the SAIL namings
#
string(REPLACE "_" "-" tiff_codec_fixed ${tiff_codec})
string(REPLACE "CCITTRLE" "CCITT-RLE" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "CCITTRLEW" "CCITT-RLEW" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "IT8BL" "IT8-BL" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "IT8CTPAD" "IT8-CTPAD" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "IT8LW" "IT8-LW" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "IT8MP" "IT8-MP" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "JP2000" "JPEG-2000" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "JXL" "JPEG-XL" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "PIXARLOG" "PIXAR-LOG" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "PIXARFILM" "PIXAR-FILM" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "SGILOG24" "SGI-LOG24" tiff_codec_fixed ${tiff_codec_fixed})
string(REPLACE "SGILOG" "SGI-LOG" tiff_codec_fixed ${tiff_codec_fixed})

# Used in .codec.info
#
list(APPEND TIFF_CODEC_INFO_COMPRESSIONS ${tiff_codec_fixed})
endif()
endforeach()

Expand Down

0 comments on commit 54c1e77

Please sign in to comment.