Use option instead of set in CMake
This commit is contained in:
@@ -145,7 +145,9 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if((CMAKE_SYSTEM_NAME STREQUAL "NetBSD") OR (CMAKE_SYSTEM_NAME STREQUAL "OpenBSD"))
|
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()
|
endif()
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
|||||||
Reference in New Issue
Block a user