From e402aaeda14a4b5e7bff9ad3c7701c616c8db7dd Mon Sep 17 00:00:00 2001 From: Uwe Klotz Date: Wed, 17 Mar 2021 13:17:00 +0100 Subject: Use cmake_dependent_option() for WavPack consistently --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 7442de4f6f..934b5930e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2622,9 +2622,9 @@ endif() # WavPack audio file support find_package(wavpack) -option(WAVPACK "WavPack audio file support" OFF) +cmake_dependent_option(BULK "WavPack audio file support" ON "wavpack_FOUND" OFF) if(WAVPACK) - if(NOT TARGET WavPack::wavpack) + if(NOT wavpack_FOUND) message(FATAL_ERROR "WavPack audio file support requires libwv and its development headers.") endif() target_sources(mixxx-lib PRIVATE src/sources/soundsourcewv.cpp) -- cgit v1.2.3