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)
This commit is contained in:
parent
677047dda0
commit
815485e933
|
@ -12,8 +12,8 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
# Copyright 2009 Kitware, Inc.
|
# Copyright 2009-2011 Kitware, Inc.
|
||||||
# Copyright 2009 Philip Lowman <philip@yhbt.com>
|
# Copyright 2009-2011 Philip Lowman <philip@yhbt.com>
|
||||||
#
|
#
|
||||||
# Distributed under the OSI-approved BSD License (the "License");
|
# Distributed under the OSI-approved BSD License (the "License");
|
||||||
# see accompanying file Copyright.txt for details.
|
# see accompanying file Copyright.txt for details.
|
||||||
|
@ -25,8 +25,9 @@
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
# (To distribute this file outside of CMake, substitute the full
|
||||||
# License text for the above reference.)
|
# License text for the above reference.)
|
||||||
|
|
||||||
find_path(ALSA_INCLUDE_DIR NAMES asoundlib.h
|
# Try to find asoundlib.h both in <PREFIX>/include/alsa and <PREFIX>/include
|
||||||
PATH_SUFFIXES alsa
|
# 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"
|
DOC "The ALSA (asound) include directory"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue