From b468f24797ff9f29d0949abed89cb3117ea2b08d Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 19 Nov 2016 16:13:30 +0100 Subject: [PATCH] CMake: Fix linking against system OpenAL via pkgconfig The pkgconfig check yields OPENAL_LIBRARIES, the other gives OPENAL_LIBRARY... --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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() -- 2.39.2