diff --git a/CMakeLists.txt b/CMakeLists.txt index c014cf0..cbe6d55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -191,6 +191,10 @@ list ( APPEND TIFF_SRCS tif_win32.c ) endif ( ) add_prefix ( libtiff/ TIFF_SRCS ) +if( NOT HAVE_SEARCH_H ) + list ( APPEND TIFF_SRCS port/lfind.c ) +endif ( ) + if ( NOT WIN32 ) find_library ( M_LIBRARY NAMES m PATHS /usr/lib /usr/local/lib ) if ( NOT M_LIBRARY )