]> git.jsancho.org Git - lugaru.git/commitdiff
CMake: Fix linking against system OpenAL via pkgconfig
authorRémi Verschelde <rverschelde@gmail.com>
Sat, 19 Nov 2016 15:13:30 +0000 (16:13 +0100)
committerRémi Verschelde <rverschelde@gmail.com>
Sat, 19 Nov 2016 15:23:55 +0000 (16:23 +0100)
The pkgconfig check yields OPENAL_LIBRARIES, the other gives
OPENAL_LIBRARY...

CMakeLists.txt

index 17f8130771dfa60d44a4d9f57731779cec91754a..7a55bda573c9c5773458a48dfb92dfbed0daf0ad 100644 (file)
@@ -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()