cmake: Do not use absolute libm path

This commit is contained in:
Roger Leigh 2020-10-09 08:32:44 +01:00
parent a4cae3b8a3
commit 7c9ca61785

View File

@ -677,7 +677,7 @@ endif()
# Libraries required by libtiff
set(TIFF_LIBRARY_DEPS)
if(NOT MINGW AND M_LIBRARY)
list(APPEND TIFF_LIBRARY_DEPS ${M_LIBRARY})
list(APPEND TIFF_LIBRARY_DEPS "m")
endif()
if(ZLIB_LIBRARIES)
list(APPEND TIFF_LIBRARY_DEPS ${ZLIB_LIBRARIES})