mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Don't try to use sound if building only server
This commit is contained in:
parent
836595313c
commit
188b303991
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ OPTION(ENABLE_SOUND "Enable sound" ON)
|
||||||
set(USE_SOUND 0)
|
set(USE_SOUND 0)
|
||||||
set(SOUND_PROBLEM 0)
|
set(SOUND_PROBLEM 0)
|
||||||
|
|
||||||
if(ENABLE_SOUND)
|
if(ENABLE_SOUND AND BUILD_CLIENT)
|
||||||
# Sound libraries
|
# Sound libraries
|
||||||
find_package(OpenAL)
|
find_package(OpenAL)
|
||||||
find_package(Vorbis)
|
find_package(Vorbis)
|
||||||
|
@ -63,7 +63,7 @@ if(ENABLE_SOUND)
|
||||||
set(USE_SOUND 1)
|
set(USE_SOUND 1)
|
||||||
message(STATUS "Sound enabled")
|
message(STATUS "Sound enabled")
|
||||||
endif()
|
endif()
|
||||||
endif(ENABLE_SOUND)
|
endif(ENABLE_SOUND AND BUILD_CLIENT)
|
||||||
|
|
||||||
if(SOUND_PROBLEM)
|
if(SOUND_PROBLEM)
|
||||||
message(FATAL_ERROR "Sound enabled, but cannot be used.\n"
|
message(FATAL_ERROR "Sound enabled, but cannot be used.\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue