summaryrefslogtreecommitdiffstats
path: root/Modules/FindOpenAL.cmake
diff options
context:
space:
mode:
authorJames Jones <james@theinnocuous.com>2018-04-15 07:06:42 (GMT)
committerBrad King <brad.king@kitware.com>2018-04-16 15:24:22 (GMT)
commit3d9d1c9dcfa2d16ef3e14977f62fab8042f108e3 (patch)
tree76efb6be82648983e8e5061218c4c60ddc2a8cd8 /Modules/FindOpenAL.cmake
parentd244a8ab5b4b145ef210300fb244cdea06d5c943 (diff)
downloadCMake-3d9d1c9dcfa2d16ef3e14977f62fab8042f108e3.zip
CMake-3d9d1c9dcfa2d16ef3e14977f62fab8042f108e3.tar.gz
CMake-3d9d1c9dcfa2d16ef3e14977f62fab8042f108e3.tar.bz2
FindOpenAL: Find AL/al.h or OpenAL/al.h in standard include paths
Add `AL` and `OpenAL` to the `PATH_SUFFIXES` so that they are searched within the standard system include directories. We already have `include/AL`, `include/OpenAL`, and `include` to help out within the locations specified by `PATHS`, though it is unclear why it was done this way instead of adding the suffixes to all the `PATHS` explicitly.
Diffstat (limited to 'Modules/FindOpenAL.cmake')
-rw-r--r--Modules/FindOpenAL.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindOpenAL.cmake b/Modules/FindOpenAL.cmake
index c3d202e..7521d51 100644
--- a/Modules/FindOpenAL.cmake
+++ b/Modules/FindOpenAL.cmake
@@ -58,7 +58,7 @@
find_path(OPENAL_INCLUDE_DIR al.h
HINTS
ENV OPENALDIR
- PATH_SUFFIXES include/AL include/OpenAL include
+ PATH_SUFFIXES include/AL include/OpenAL include AL OpenAL
PATHS
~/Library/Frameworks
/Library/Frameworks