1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 15:49:36 +02:00

rename MP2 CMake option to MP2_ENCODING

Twolame only encodes MP2 audio. It does not decode MP2 audio.

Signed-off-by: Be <be@mixxx.org>
This commit is contained in:
Be 2021-08-18 23:47:32 -05:00
parent db09547873
commit 13914c5125
No known key found for this signature in database
GPG Key ID: F4D83691462F656E
2 changed files with 3 additions and 3 deletions

View File

@ -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++

View File

@ -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()