Use option instead of set in CMake

This commit is contained in:
NishiOwO
2025-03-24 19:51:45 +09:00
parent e4fb39d944
commit c135dddfa9

View File

@@ -145,7 +145,9 @@ else()
endif()
if((CMAKE_SYSTEM_NAME STREQUAL "NetBSD") OR (CMAKE_SYSTEM_NAME STREQUAL "OpenBSD"))
set(AUDIO4 ON)
option(AUDIO4 "Use audio(4) as sound backend" ON)
else()
set(AUDIO4 OFF)
endif()
if(WIN32)