[Commits] SDL: Fixed bug 4027 - CheckLibSampleRate macro in sdlchecks.cmak...

libsdl.org revision control commits-owner at libsdl.org
Tue Feb 13 13:26:39 PST 2018


details:   https://hg.libsdl.org/SDL/rev/c207c3ab46ee
changeset: 11871:c207c3ab46ee
user:      Sam Lantinga <slouken at libsdl.org>
date:      Tue Feb 13 13:25:59 2018 -0800
description:
Fixed bug 4027 - CheckLibSampleRate macro in sdlchecks.cmake never defines HAVE_LIBSAMPLERATE{,_SHARED}, so they're always reported as disabled by MESSAGE_TESTED_OPTION macro in macros.cmake

diffstat:

 cmake/sdlchecks.cmake |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r b548450528c9 -r c207c3ab46ee cmake/sdlchecks.cmake
--- a/cmake/sdlchecks.cmake	Tue Feb 13 08:15:39 2018 -0800
+++ b/cmake/sdlchecks.cmake	Tue Feb 13 13:25:59 2018 -0800
@@ -354,12 +354,14 @@
   if(LIBSAMPLERATE)
     check_include_file(samplerate.h HAVE_LIBSAMPLERATE_H)
     if(HAVE_LIBSAMPLERATE_H)
+      set(HAVE_LIBSAMPLERATE TRUE)
       if(LIBSAMPLERATE_SHARED)
         if(NOT HAVE_DLOPEN)
           message_warn("You must have SDL_LoadObject() support for dynamic libsamplerate loading")
         else()
           FindLibraryAndSONAME("samplerate")
           set(SDL_LIBSAMPLERATE_DYNAMIC "\"${SAMPLERATE_LIB_SONAME}\"")
+          set(HAVE_LIBSAMPLERATE_SHARED TRUE)
         endif()
       else()
         list(APPEND EXTRA_LDFLAGS -lsamplerate)


More information about the commits mailing list