From 28c2dbf167de63e6996af733d994d660c42e23aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 19 Jun 2020 13:35:41 +0200 Subject: [PATCH] modules: don't look for OpenAL config on Emscripten. It causes OpenAL from /usr to be picked up, which then causes /usr/include to be on the include path, which then causes MY BLOOD TO BOIL. --- modules/FindOpenAL.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/FindOpenAL.cmake b/modules/FindOpenAL.cmake index 39f4fa183..7b8c84c42 100644 --- a/modules/FindOpenAL.cmake +++ b/modules/FindOpenAL.cmake @@ -46,7 +46,10 @@ # doesn't print loud messages when it's not found, since that's okay. If the # OpenAL target already exists, it means we're using it through a CMake # subproject -- don't attempt to find the package in that case. -if(NOT TARGET OpenAL) +# +# In case of Emscripten we don't want any of this -- the library name and +# includes are implicit. +if(NOT CORRADE_TARGET_EMSCRIPTEN AND NOT TARGET OpenAL) find_package(OpenAL CONFIG QUIET) endif()