Skip to content

Commit

Permalink
build: Don't set -Wno-unused-result on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Feb 3, 2025
1 parent 0a6681c commit 1e8dd54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/third_party/miniaudio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ add_library(miniaudio STATIC
)

target_include_directories(miniaudio PUBLIC include)
target_compile_options(miniaudio PRIVATE -Wno-unused-result)
if (APPLE)
set_source_files_properties(source/miniaudio.c PROPERTIES LANGUAGE OBJC)
elseif (NOT MSVC)
target_compile_options(miniaudio PRIVATE -Wno-unused-result)
endif ()

0 comments on commit 1e8dd54

Please sign in to comment.