mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
16b7b6626d
* [sdl2] Add feature samplerate * version
14 lines
473 B
Diff
14 lines
473 B
Diff
diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake
|
|
index 65a98efbe..2f99f28f1 100644
|
|
--- a/cmake/sdlchecks.cmake
|
|
+++ b/cmake/sdlchecks.cmake
|
|
@@ -352,7 +352,7 @@ endmacro()
|
|
# - HAVE_SDL_LOADSO opt
|
|
macro(CheckLibSampleRate)
|
|
if(SDL_LIBSAMPLERATE)
|
|
- find_package(SampleRate QUIET)
|
|
+ find_package(SampleRate CONFIG REQUIRED)
|
|
if(SampleRate_FOUND AND TARGET SampleRate::samplerate)
|
|
set(HAVE_LIBSAMPLERATE TRUE)
|
|
set(HAVE_LIBSAMPLERATE_H TRUE)
|