diff options
author | Peter A. Bigot <pab@pabigot.com> | 2014-05-10 06:50:30 -0500 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2014-05-16 15:07:08 -0700 |
commit | 2136cda19f8629fc7c3fda67805515dab0e41c90 (patch) | |
tree | e157ce23c9d93be6addb49e56928614c87b4c48a /cmake/Modules | |
parent | e6325686ea337ff9e2fb9b6a57cf79a740cd9ce0 (diff) |
cmake: fix FindPortaudio pkg-config support
Look for portaudio-2.0 which is the standard pkg-config name for the
portaudio API that gnuradio requires. Correct the variable name in the
include directory hint derived from pkg-config information.
Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/FindPortaudio.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/Modules/FindPortaudio.cmake b/cmake/Modules/FindPortaudio.cmake index 61e4ae23a1..e28858b0ed 100644 --- a/cmake/Modules/FindPortaudio.cmake +++ b/cmake/Modules/FindPortaudio.cmake @@ -6,7 +6,7 @@ # PORTAUDIO_LIBRARIES - Link these to use Portaudio include(FindPkgConfig) -pkg_check_modules(PC_PORTAUDIO portaudio) +pkg_check_modules(PC_PORTAUDIO portaudio-2.0) find_path(PORTAUDIO_INCLUDE_DIRS NAMES @@ -15,7 +15,7 @@ find_path(PORTAUDIO_INCLUDE_DIRS /usr/local/include /usr/include HINTS - ${PC_PORTAUDIO_INCLUDE_DIR} + ${PC_PORTAUDIO_INCLUDEDIR} ) find_library(PORTAUDIO_LIBRARIES |