CMake: Comply with include path reported by FindOpenGL.cmake
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 29 Aug 2018 13:08:28 +0000 (15:08 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 29 Aug 2018 13:08:28 +0000 (15:08 +0200)
commitb2c707747da9f930a05499e98874c35d9aee7193
tree6e687689e15cb2e9e769e5e0379695848ec27186
parent987b3abeb456fea55d14c8646b6dc253c7eb356c
CMake: Comply with include path reported by FindOpenGL.cmake

The script clearly states:

  This makes the presumption that you are include al.h like
  #include "al.h"
  and not
  #include <AL/al.h>
  The reason for this is that the latter is not entirely portable.
  Windows/Creative Labs does not by default put their headers in AL/ and
  OS X uses the convention <OpenAL/al.h>.

This commit makes default precompiled OpenAL to be properly detected
and also removes hack on MacOS which was finding the OpenAL package but
then was overwriting include directory.

Note, that new audaspace in 2.8 is using expected #include <al.h>.
build_files/cmake/platform/platform_apple.cmake
build_files/cmake/platform/platform_win32.cmake
intern/audaspace/OpenAL/AUD_OpenALDevice.h