Skip to content

Commit

Permalink
cmake: Link tiff library only for Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Aug 7, 2021
1 parent 2215174 commit 95223cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ endif()

add_executable (tesseract src/api/tesseractmain.cpp)
target_link_libraries (tesseract libtesseract)
if (HAVE_TIFFIO_H)
if (WIN32 AND HAVE_TIFFIO_H)
target_link_libraries(tesseract tiff)
endif()

Expand Down

0 comments on commit 95223cf

Please sign in to comment.