From: Perttu Ahola Date: Sun, 25 Mar 2012 18:10:25 +0000 (+0300) Subject: Don't try to use sound if building only server X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=188b303991cebc3c85480385866c00384bd05cda;p=zefram%2Fminetest%2Fminetest_engine.git Don't try to use sound if building only server --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5fea0546..b0cece12 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"