aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-25 21:10:25 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-03-25 21:10:25 +0300
commit188b303991cebc3c85480385866c00384bd05cda (patch)
treefa4736adbac835fe00de058e40a9d1932c1a868b /src
parent836595313c9ea4ea5b89063e0077025e4e6708b9 (diff)
downloadminetest-188b303991cebc3c85480385866c00384bd05cda.tar.gz
minetest-188b303991cebc3c85480385866c00384bd05cda.tar.bz2
minetest-188b303991cebc3c85480385866c00384bd05cda.zip
Don't try to use sound if building only server
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 5fea0546d..b0cece120 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -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"