Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
1d7d8dfb
Commit
1d7d8dfb
authored
Aug 23, 2025
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some CMake errors with the Emscripten build.
parent
f48d9035
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
CMakeLists.txt
CMakeLists.txt
+14
-0
No files found.
CMakeLists.txt
View file @
1d7d8dfb
...
...
@@ -82,6 +82,20 @@ set(COMPILE_OPTIONS)
set
(
LIBS_TO_INSTALL
)
# Special rules for Emscripten.
#
# - MINIAUDIO_FORCE_C89 is not supported.
# - MINIAUDIO_NO_RUNTIME_LINKING must be enabled.
if
(
CMAKE_SYSTEM_NAME STREQUAL
"Emscripten"
)
set
(
MINIAUDIO_FORCE_C89 OFF
)
set
(
MINIAUDIO_NO_RUNTIME_LINKING ON
)
# This is a hack to work around some errors relating to generation of the pkg-config file.
set
(
MINIAUDIO_ENABLE_ONLY_SPECIFIC_BACKENDS ON
)
set
(
MINIAUDIO_ENABLE_WEBAUDIO ON
)
endif
()
if
(
MINIAUDIO_FORCE_CXX AND MINIAUDIO_FORCE_C89
)
message
(
FATAL_ERROR
"MINIAUDIO_FORCE_CXX and MINIAUDIO_FORCE_C89 cannot be enabled at the same time."
)
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment