mingw-w64 cmake: Don't find libm
mingw-w64 will provide libm symbols by default without -lm and mingw-64's libm is just a stub. This is just to make sure that on systems with msys2 and also cygwin, cmake doesn't find a libm that actually contains math functions.
This commit is contained in:
parent
06d6e36187
commit
16377d39ea
@ -203,7 +203,9 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Find libm, if available
|
# Find libm, if available
|
||||||
|
if(NOT MINGW)
|
||||||
find_library(M_LIBRARY m)
|
find_library(M_LIBRARY m)
|
||||||
|
endif()
|
||||||
|
|
||||||
check_include_file(assert.h HAVE_ASSERT_H)
|
check_include_file(assert.h HAVE_ASSERT_H)
|
||||||
check_include_file(dlfcn.h HAVE_DLFCN_H)
|
check_include_file(dlfcn.h HAVE_DLFCN_H)
|
||||||
@ -671,7 +673,7 @@ endif()
|
|||||||
|
|
||||||
# Libraries required by libtiff
|
# Libraries required by libtiff
|
||||||
set(TIFF_LIBRARY_DEPS)
|
set(TIFF_LIBRARY_DEPS)
|
||||||
if(M_LIBRARY)
|
if(NOT MINGW AND M_LIBRARY)
|
||||||
list(APPEND TIFF_LIBRARY_DEPS ${M_LIBRARY})
|
list(APPEND TIFF_LIBRARY_DEPS ${M_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
if(ZLIB_LIBRARIES)
|
if(ZLIB_LIBRARIES)
|
||||||
|
Loading…
Reference in New Issue
Block a user