Merge pull request #5840 from ya-isakov/dev

Make libcanberra optional
This commit is contained in:
Floessie
2020-08-16 15:05:45 +02:00
committed by GitHub
2 changed files with 7 additions and 3 deletions

View File

@@ -493,7 +493,11 @@ endif()
# Check for libcanberra-gtk3 (sound events on Linux):
if(UNIX AND (NOT APPLE))
pkg_check_modules(CANBERRA-GTK REQUIRED libcanberra-gtk3)
option(USE_LIBCANBERRA "Build with libcanberra" ON)
if(USE_LIBCANBERRA)
pkg_check_modules(CANBERRA-GTK REQUIRED libcanberra-gtk3)
add_definitions(-DUSE_CANBERRA)
endif()
endif()
if(WITH_MYFILE_MMAP)