Update CMakeLists.txt

USE_AUDIO is redundant in the presence of the already existent and more descriptive SUPPORT_MODULE_RAUDIO.
This commit is contained in:
Lázaro Albuquerque 2024-06-09 22:01:19 -04:00 committed by GitHub
parent 4f08618942
commit 1785fc06b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 8 deletions

View File

@ -29,6 +29,7 @@ set(raylib_public_headers
# Sources to be compiled
set(raylib_sources
raudio.c
rcore.c
rmodels.c
rshapes.c
@ -42,14 +43,6 @@ if (NOT ${PLATFORM} MATCHES "Web")
include(GlfwImport)
endif ()
if (USE_AUDIO)
MESSAGE(STATUS "Audio Backend: miniaudio")
list(APPEND raylib_sources raudio.c)
else ()
MESSAGE(STATUS "Audio Backend: None (-DUSE_AUDIO=OFF)")
endif ()
add_library(raylib ${raylib_sources} ${raylib_public_headers})
# Sets additional platform options and link libraries for each platform