Build solidautoeject only on FreeBSD

Solid's UDisks backend never emits the Solid::OpticalDrive::ejectPressed signal.
It is only present in HAL whereas Linux uses UDev these days.

Differential Revision: https://phabricator.kde.org/D13752
wilder-5.14
Kai Uwe Broulik 8 years ago
parent a58e487076
commit edd5e889f5
  1. 6
      CMakeLists.txt

@ -166,7 +166,13 @@ add_subdirectory(ktimezoned)
add_subdirectory(kuiserver)
add_subdirectory(menu)
add_subdirectory(phonon)
# This ensures pressing the eject button on a CD drive ejects the disc
# It listens to the Solid::OpticalDrive::ejectPressed signal that is only
# supported by Solid in the HAL backend and does nothing with UDev
if(CMAKE_SYSTEM_NAME MATCHES FreeBSD)
add_subdirectory(solidautoeject)
endif()
ecm_optional_add_subdirectory(xembed-sni-proxy)

Loading…
Cancel
Save