From 26d6b8b5b720d5eaffb53c88adf578c805ae3c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1zaro=20Albuquerque?= <33807434+lzralbu@users.noreply.github.com> Date: Fri, 14 Jun 2024 10:17:52 -0400 Subject: [PATCH] Revert "Update CMakeLists.txt" This reverts commit 1785fc06b5b89e65515cea3afd3e3c095f15e350. --- src/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d3d5f2843..7fed3215e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -29,7 +29,6 @@ set(raylib_public_headers # Sources to be compiled set(raylib_sources - raudio.c rcore.c rmodels.c rshapes.c @@ -43,6 +42,14 @@ 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