Merge branch 'master' of https://github.com/thestk/rtaudio
authorMarcus Tomlinson <themarcustomlinson@gmail.com>
Fri, 12 Oct 2018 21:27:33 +0000 (22:27 +0100)
committerMarcus Tomlinson <themarcustomlinson@gmail.com>
Fri, 12 Oct 2018 21:27:33 +0000 (22:27 +0100)
1  2 
CMakeLists.txt
configure.ac

diff --combined CMakeLists.txt
index 14b1787ff9e132acbbaaa04d7a1cab8d1d20cabd,2ce3b4b1bef9b155b3b94d41ebb451cef6e8500f..995b0303e9732f95dfb146c2770197a887496a13
@@@ -178,7 -178,7 +178,7 @@@ endif(
  # WASAPI
  if (RTAUDIO_API_WASAPI)
    set(NEED_WIN32LIBS ON)
 -  list(APPEND LINKLIBS uuid ksuser)
 +  list(APPEND LINKLIBS ksuser mfplat mfuuid wmcodecdspuuid)
    list(APPEND API_DEFS "-D__WINDOWS_WASAPI__")
    list(APPEND API_LIST "wasapi")
  endif()
@@@ -257,6 -257,7 +257,7 @@@ message(STATUS "Compiling with support 
  # PkgConfig file
  string(REPLACE ";" " " req "${PKGCONFIG_REQUIRES}")
  string(REPLACE ";" " " api "${API_DEFS}")
+ set(prefix ${CMAKE_INSTALL_PREFIX})
  configure_file("rtaudio.pc.in" "rtaudio.pc" @ONLY)
  
  # Add install rule.
diff --combined configure.ac
index d3a0cc4cb45810b6db1d631068880d081b76b757,322f1b49b8044eb2f10319ad7016746c96d81729..266ff488fd4fd70c479a978fe055981f6369f261
@@@ -86,8 -86,8 +86,8 @@@ AC_CHECK_HEADERS(sys/ioctl.h unistd.h
  AS_IF([test "x${GXX}" = "xyes" ], [
    CXXFLAGS="-Wall -Wextra ${CXXFLAGS}"
    AS_IF([ test "x${enable_debug}" = "xyes" ], [
-     # Add -Werror in debug mode
-     CXXFLAGS="-Werror ${CXXFLAGS}"
+     # Add -Werror in debug mode (except unused-function)
+     CXXFLAGS="-Werror -Wno-error=unused-function ${CXXFLAGS}"
    ], [
      # hide private symbols in non-debug mode
      visibility="-fvisibility=hidden"
@@@ -272,7 -272,7 +272,7 @@@ AS_CASE(["$systems"], [*" wasapi "*], 
       CPPFLAGS="-I$srcdir/include $CPPFLAGS"
       need_ole32=yes
       found="$found WASAPI"
 -     LIBS="-lwinmm -luuid -lksuser $LIBS"])
 +     LIBS="-lwinmm -lksuser -lmfplat -lmfuuid -lwmcodecdspuuid $LIBS"])
  ])
  
  AS_IF([test -n "$need_ole32"], [LIBS="-lole32 $LIBS"])