From: RĂ©mi Verschelde Date: Sat, 19 Nov 2016 15:13:30 +0000 (+0100) Subject: CMake: Fix linking against system OpenAL via pkgconfig X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=b468f24797ff9f29d0949abed89cb3117ea2b08d;p=lugaru.git CMake: Fix linking against system OpenAL via pkgconfig The pkgconfig check yields OPENAL_LIBRARIES, the other gives OPENAL_LIBRARY... --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 17f8130..7a55bda 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -179,6 +179,7 @@ if (NOT LUGARU_FORCE_INTERNAL_OPENAL) # FIXME: We should remove bundled libs and allow building OpenAL from source, for all platforms if (WIN32) pkg_check_modules(OPENAL openal) + set(OPENAL_LIBRARY ${OPENAL_LIBRARIES}) else (WIN32) find_package(OpenAL REQUIRED) endif()