blob: a27539167665b6a33e16c3bbf4d3ba3456ac9dbd [file] [log] [blame]
--- openal-soft-openal-soft-1.21.0/CMakeLists.txt.orig 2020-03-04 12:52:14.862006000 +0300
+++ openal-soft-openal-soft-1.21.0/CMakeLists.txt 2020-03-04 12:52:40.355186300 +0300
@@ -429,11 +429,13 @@
# Some systems need libm for some math functions to work
set(MATH_LIB )
+if(NOT MINGW)
check_library_exists(m pow "" HAVE_LIBM)
if(HAVE_LIBM)
set(MATH_LIB ${MATH_LIB} m)
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} m)
endif()
+endif()
# Some systems need to link with -lrt for clock_gettime as used by the common
# eaxmple functions.
--- openal-soft-openal-soft-1.21.0/cmake/FindMySOFA.cmake.orig 2020-03-04 13:48:39.214749300 +0300
+++ openal-soft-openal-soft-1.21.0/cmake/FindMySOFA.cmake 2020-03-04 13:49:02.945683400 +0300
@@ -49,9 +49,11 @@
DOC "The MySOFA library"
)
+if(NOT MINGW)
find_library(MYSOFA_M_LIBRARY NAMES m
DOC "The math library for MySOFA"
)
+endif()
# handle the QUIETLY and REQUIRED arguments and set MYSOFA_FOUND to TRUE if
# all listed variables are TRUE