From 7c9ca61785a4a8d67c998cdeb8d70329b61938b8 Mon Sep 17 00:00:00 2001 From: Roger Leigh Date: Fri, 9 Oct 2020 08:32:44 +0100 Subject: [PATCH] cmake: Do not use absolute libm path --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab3c1c89..a1f964da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})