Skip to content
Snippets Groups Projects
Commit 3e093fac authored by Steve Lhomme's avatar Steve Lhomme Committed by Hugo Beauzée-Luyssen
Browse files

contrib: soxr: bump the minumum cmake to use CMAKE_REQUIRED_LIBRARIES

lrint uses libm which is set in CMAKE_REQUIRED_LIBRARIES. But
check_function_exists() won't use it with cmake older than 3.12.

This removes the need for Wno-dev.
parent 86ca8580
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ soxr: soxr-$(SOXR_VERSION)-Source.tar.xz .sum-soxr
$(APPLY) $(SRC)/soxr/0003-add-aarch64-support.patch
$(APPLY) $(SRC)/soxr/0004-arm-fix-SIGILL-when-doing-divisions-on-some-old-arch.patch
$(APPLY) $(SRC)/soxr/find_ff_pkgconfig.patch
$(APPLY) $(SRC)/soxr/soxr-check-function.patch
$(call pkg_static,"src/soxr.pc.in")
$(MOVE)
......@@ -40,7 +41,6 @@ endif
-DBUILD_TESTS=OFF \
-DWITH_LSR_BINDINGS=OFF \
-DWITH_OPENMP=OFF \
-DWITH_AVFFT=ON \
-Wno-dev
-DWITH_AVFFT=ON
+$(CMAKEBUILD) $< --target install
touch $@
--- soxr/CMakeLists.txt.31 2022-09-01 14:44:39.096702600 +0200
+++ soxr/CMakeLists.txt 2022-09-01 14:44:30.250234300 +0200
@@ -1,7 +1,7 @@
# SoX Resampler Library Copyright (c) 2007-18 robs@users.sourceforge.net
# Licence for this file: LGPL v2.1 See LICENCE for details.
-cmake_minimum_required (VERSION 3.1 FATAL_ERROR)
+cmake_minimum_required (VERSION 3.12 FATAL_ERROR)
project (soxr C)
set (DESCRIPTION_SUMMARY
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment