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
authorSam Lantinga <slouken@libsdl.org>
Tue, 13 Feb 2018 13:25:59 -0800
changeset 11871c207c3ab46ee
parent 11870 b548450528c9
child 11872 e917e911dab6
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
cmake/sdlchecks.cmake
     1.1 --- a/cmake/sdlchecks.cmake	Tue Feb 13 08:15:39 2018 -0800
     1.2 +++ b/cmake/sdlchecks.cmake	Tue Feb 13 13:25:59 2018 -0800
     1.3 @@ -354,12 +354,14 @@
     1.4    if(LIBSAMPLERATE)
     1.5      check_include_file(samplerate.h HAVE_LIBSAMPLERATE_H)
     1.6      if(HAVE_LIBSAMPLERATE_H)
     1.7 +      set(HAVE_LIBSAMPLERATE TRUE)
     1.8        if(LIBSAMPLERATE_SHARED)
     1.9          if(NOT HAVE_DLOPEN)
    1.10            message_warn("You must have SDL_LoadObject() support for dynamic libsamplerate loading")
    1.11          else()
    1.12            FindLibraryAndSONAME("samplerate")
    1.13            set(SDL_LIBSAMPLERATE_DYNAMIC "\"${SAMPLERATE_LIB_SONAME}\"")
    1.14 +          set(HAVE_LIBSAMPLERATE_SHARED TRUE)
    1.15          endif()
    1.16        else()
    1.17          list(APPEND EXTRA_LDFLAGS -lsamplerate)