[soxr] Set Cmake options through portfile.cmake rather than a patch.

This commit is contained in:
Thijs Withaar 2019-05-19 19:21:27 +02:00
parent f362309178
commit 60b96c3d0c
2 changed files with 1 additions and 27 deletions

View File

@ -1,25 +0,0 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -40,10 +40,10 @@
"Build type, one of: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif ()
-option (BUILD_TESTS "Build sanity-tests." ON)
+option (BUILD_TESTS "Build sanity-tests." OFF)
option (BUILD_EXAMPLES "Build examples." OFF)
-option (WITH_OPENMP "Include OpenMP threading." ON)
-option (WITH_LSR_BINDINGS "Include a `libsamplerate'-like interface." ON)
+option (WITH_OPENMP "Include OpenMP threading." OFF)
+option (WITH_LSR_BINDINGS "Include a `libsamplerate'-like interface." OFF)
cmake_dependent_option (BUILD_SHARED_LIBS
"Build shared (dynamic) soxr libraries." ON
@@ -75,7 +75,7 @@
option (WITH_HI_PREC_CLOCK "Enable high-precision time-base." ON)
option (WITH_FLOAT_STD_PREC_CLOCK
"Use floating-point for standard-precision time-base." OFF)
-option (WITH_DEV_TRACE "Enable developer trace capability." ON)
+option (WITH_DEV_TRACE "Enable developer trace capability." OFF)
option (WITH_DEV_GPROF "Enable developer grpof output." OFF)
mark_as_advanced (WITH_HI_PREC_CLOCK WITH_FLOAT_STD_PREC_CLOCK
WITH_DEV_TRACE WITH_DEV_GPROF)

View File

@ -28,7 +28,6 @@ vcpkg_extract_source_archive_ex(
# PATCHES
# 001_port_fixes.patch
# 002_more_port_fixes.patch
disable_cmake_settings.patch
)
vcpkg_configure_cmake(
@ -37,9 +36,9 @@ vcpkg_configure_cmake(
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
# OPTIONS_RELEASE -DOPTIMIZE=1
# OPTIONS_DEBUG -DDEBUGGABLE=1
OPTIONS -DBUILD_TESTS=OFF -DWITH_OPENMP=OFF -DWITH_LSR_BINDINGS=OFF
)
vcpkg_install_cmake()
# Handle copyright