Fix ADD_OPENAL_LIBRARY()

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8572 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: f57dd4205a8e8fe6c5b99115784e5df85ef5327b
Former-commit-id: f499e9f4c4a5f4b2a795a57a1827df8546632bbc
This commit is contained in:
beaglejoe 2022-10-01 22:39:51 +00:00
parent 7de86bed47
commit a86f6b106e
2 changed files with 2 additions and 4 deletions

View file

@ -220,7 +220,7 @@ MACRO(ADD_OPENAL_LIBRARY TARGET)
FIND_PACKAGE(OpenAL)
IF(OPENAL_FOUND)
TARGET_LINK_LIBRARIES(${TARGET} ${OPENAL_LIBRARIES})
TARGET_LINK_LIBRARIES(${TARGET} ${OPENAL_LIBRARY})
ELSE(OPENAL_FOUND)
MESSAGE(FATAL_ERROR "Cannot find OpenAL libraries")
ENDIF(OPENAL_FOUND)

View file

@ -60,9 +60,7 @@ ADD_SDL2_LIBRARY(snddefault)
ADD_SDLIB_LIBRARY(snddefault portability tgf tgfclient robottools)
IF(OPENAL_FOUND)
TARGET_LINK_LIBRARIES(snddefault ${OPENAL_LIBRARY})
ENDIF(OPENAL_FOUND)
ADD_OPENAL_LIBRARY(snddefault)
IF(OPENGL_FOUND)
TARGET_LINK_LIBRARIES(snddefault ${OPENGL_LIBRARY})