Skip to content

Commit

Permalink
CMake: internal libtiff: fix build without JPEG (fixes OSGeo#5741)
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed May 17, 2022
1 parent c25a2d8 commit 9e4b92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frmts/gtiff/libtiff/CMakeLists.txt
Expand Up @@ -86,7 +86,7 @@ if (NOT GDAL_USE_ZLIB_INTERNAL)
gdal_target_link_libraries(libtiff PRIVATE ZLIB::ZLIB)
endif ()

if (NOT GDAL_USE_JPEG_INTERNAL)
if (GDAL_USE_JPEG AND NOT GDAL_USE_JPEG_INTERNAL)
# Use a separate object library so that external libjpeg headers are only applied to tif_jpeg.c and tif_ojpeg.c, but
# not tif_jpeg_12.c !
add_library(libtiff_jpeg OBJECT tif_jpeg.c tif_ojpeg.c)
Expand Down

0 comments on commit 9e4b92f

Please sign in to comment.