From 9b9bd0eb8cd548cfa745a2b6ab1de59f8fb1604b Mon Sep 17 00:00:00 2001 From: Nimetu Date: Wed, 24 Oct 2018 08:38:47 +0300 Subject: [PATCH] Fixed: Compiling withoud ffmpeg --HG-- branch : develop --- code/nel/src/sound/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/nel/src/sound/CMakeLists.txt b/code/nel/src/sound/CMakeLists.txt index bc1816a17..f0417754c 100644 --- a/code/nel/src/sound/CMakeLists.txt +++ b/code/nel/src/sound/CMakeLists.txt @@ -1,6 +1,10 @@ FILE(GLOB SRC *.cpp *.h) FILE(GLOB HEADERS ../../include/nel/sound/*.h) +IF(NOT FFMPEG_FOUND) + LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/audio_decoder_ffmpeg.cpp) + LIST(REMOVE_ITEM HEADERS ${CMAKE_CURRENT_SOURCE_DIR}../../include/nel/sound/audio_decoder_ffmpeg.h) +ENDIF() FILE(GLOB ANIMATION sound_anim_manager.cpp ../../include/nel/sound/sound_anim_manager.h