diff --git a/CMakeLists.txt b/CMakeLists.txt index 4e56401d3..e2b8141ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -366,6 +366,10 @@ optional_component(EBUR128 ON "EBU R 128 loudness normalization" DEPENDS "libebur128" LIBEBUR128_FOUND ) +if(HAVE_SONGFINGERPRINTING OR HAVE_MUSICBRAINZ) + set(HAVE_CHROMAPRINT ON) +endif() + if(HAVE_X11_GLOBALSHORTCUTS OR HAVE_KDE_GLOBALSHORTCUTS OR HAVE_GNOME_GLOBALSHORTCUTS OR HAVE_MATE_GLOBALSHORTCUTS OR APPLE OR WIN32) set(HAVE_GLOBALSHORTCUTS ON) endif() @@ -1275,10 +1279,7 @@ endif() optional_source(HAVE_ALSA SOURCES src/engine/alsadevicefinder.cpp src/engine/alsapcmdevicefinder.cpp) optional_source(HAVE_PULSE SOURCES src/engine/pulsedevicefinder.cpp) optional_source(MSVC SOURCES src/engine/uwpdevicefinder.cpp src/engine/asiodevicefinder.cpp) - -if(HAVE_SONGFINGERPRINTING OR HAVE_MUSICBRAINZ) - optional_source(CHROMAPRINT_FOUND SOURCES src/engine/chromaprinter.cpp) -endif() +optional_source(HAVE_CHROMAPRINT SOURCES src/engine/chromaprinter.cpp) optional_source(HAVE_MUSICBRAINZ SOURCES @@ -1535,7 +1536,7 @@ target_link_libraries(strawberry_lib PUBLIC ICU::i18n $<$:ALSA::ALSA> $<$:PkgConfig::LIBPULSE> - $<$:PkgConfig::CHROMAPRINT> + $<$:PkgConfig::CHROMAPRINT> $<$:PkgConfig::FFTW3> $<$:PkgConfig::LIBEBUR128> $<$:X11::X11_xcb>