diff options
author | Philip Lowman <philip@yhbt.com> | 2012-02-11 23:51:22 (GMT) |
---|---|---|
committer | Philip Lowman <philip@yhbt.com> | 2012-02-11 23:51:22 (GMT) |
commit | 815485e9333e07fbbac66bfc415fa2ae5cbe8a85 (patch) | |
tree | 9ca614a48b4f96c120963cfb240fba2f16f55bb3 /Modules/FindALSA.cmake | |
parent | 677047dda0620fa675bcc1a8bacde5388ad954c3 (diff) | |
download | CMake-815485e9333e07fbbac66bfc415fa2ae5cbe8a85.zip CMake-815485e9333e07fbbac66bfc415fa2ae5cbe8a85.tar.gz CMake-815485e9333e07fbbac66bfc415fa2ae5cbe8a85.tar.bz2 |
FindALSA: Fix incorrect include path detection
This fixes a bug where the alsa include path was being detected
incorrectly (e.g. /usr/local/include/alsa instead of /usr/local/include)
Diffstat (limited to 'Modules/FindALSA.cmake')
-rw-r--r-- | Modules/FindALSA.cmake | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Modules/FindALSA.cmake b/Modules/FindALSA.cmake index ec6e3a8..41c4e30 100644 --- a/Modules/FindALSA.cmake +++ b/Modules/FindALSA.cmake @@ -12,8 +12,8 @@ # #============================================================================= -# Copyright 2009 Kitware, Inc. -# Copyright 2009 Philip Lowman <philip@yhbt.com> +# Copyright 2009-2011 Kitware, Inc. +# Copyright 2009-2011 Philip Lowman <philip@yhbt.com> # # Distributed under the OSI-approved BSD License (the "License"); # see accompanying file Copyright.txt for details. @@ -25,8 +25,9 @@ # (To distribute this file outside of CMake, substitute the full # License text for the above reference.) -find_path(ALSA_INCLUDE_DIR NAMES asoundlib.h - PATH_SUFFIXES alsa +# Try to find asoundlib.h both in <PREFIX>/include/alsa and <PREFIX>/include +# since older versions of ALSA put it in include directly +find_path(ALSA_INCLUDE_DIR NAMES alsa/asoundlib.h asoundlib.h DOC "The ALSA (asound) include directory" ) |