cmake: fix tiff linking to executable if tiffio.h is found

This commit is contained in:
Zdenko Podobný 2019-05-24 11:12:39 +02:00
parent 0f1e13a859
commit c69ee9af24

View File

@ -423,6 +423,9 @@ endif()
add_executable (tesseract ${tesseractmain_src} ${tesseractmain_rsc})
target_link_libraries (tesseract libtesseract)
if (HAVE_TIFFIO_H)
target_link_libraries(tesseract tiff)
endif()
########################################