Skip to content
Snippets Groups Projects
Commit 188b3039 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

Don't try to use sound if building only server

parent 83659531
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ OPTION(ENABLE_SOUND "Enable sound" ON)
set(USE_SOUND 0)
set(SOUND_PROBLEM 0)
if(ENABLE_SOUND)
if(ENABLE_SOUND AND BUILD_CLIENT)
# Sound libraries
find_package(OpenAL)
find_package(Vorbis)
......@@ -63,7 +63,7 @@ if(ENABLE_SOUND)
set(USE_SOUND 1)
message(STATUS "Sound enabled")
endif()
endif(ENABLE_SOUND)
endif(ENABLE_SOUND AND BUILD_CLIENT)
if(SOUND_PROBLEM)
message(FATAL_ERROR "Sound enabled, but cannot be used.\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment