diff --git a/BUILDING.md b/BUILDING.md index c8e0f9131..8aeb09d86 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -231,7 +231,7 @@ has outdated libraries that do not build with Tenacity. * **MIDI** (ON|OFF): MIDI support. Requires PortMidi and PortSMF. * **ID3TAG** (ON|OFF): ID3 tag support for MP3 files. Requires libid3tag. * **MP3_DECODING** (ON|OFF): MP3 decoding support. Requires libmad. - * **MP2** (ON|OFF): MP2 codec support. Requires Twolame library. + * **MP2_ENCODING** (ON|OFF): MP2 encoding support. Requires Twolame library. * **OGG** (ON|OFF): Ogg container format support. Requires libogg. * **VORBIS** (ON|OFF): Vorbis codec support. Requires libvorbis. * **FLAC** (ON|OFF): FLAC codec support. Requires libflac and libflac++ C++ diff --git a/CMakeLists.txt b/CMakeLists.txt index 4347bfd9b..2c3d7d387 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -589,8 +589,8 @@ else() endif() find_package(libtwolame) -cmake_dependent_option(MP2 "MP2 support with Twolame" ON "libtwolame_FOUND" OFF) -if(MP2) +cmake_dependent_option(MP2_ENCODING "MP2 support with Twolame" ON "libtwolame_FOUND" OFF) +if(MP2_ENCODING) set(USE_LIBTWOLAME ON) message(STATUS "MP2 encoding support enabled.") else()