diff options
author | Wolfgang Schupp <w.schupp@a1.net> | 2016-12-30 19:16:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-30 19:16:13 +0100 |
commit | c8a2e35eb542a6bd4e3e2583f15bae999c25d66a (patch) | |
tree | 2ad63eeaeb5911cb524b86aec99725b6d2b07626 /cmake | |
parent | bfb071c4b52bfbacebe0b0b377e22aee343a3aee (diff) | |
parent | c36e7eaa5b87f21d17557818d381b0441332bbb0 (diff) |
Merge pull request #11261 from lrusak/wiimote-fix
[cmake] don't build and install wiimote if bluetooth is disabled
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/scripts/linux/ExtraTargets.cmake | 2 | ||||
-rw-r--r-- | cmake/scripts/linux/Install.cmake | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/cmake/scripts/linux/ExtraTargets.cmake b/cmake/scripts/linux/ExtraTargets.cmake index 4698c2ac68..e6b21cf113 100644 --- a/cmake/scripts/linux/ExtraTargets.cmake +++ b/cmake/scripts/linux/ExtraTargets.cmake @@ -7,6 +7,6 @@ if(ENABLE_X11 AND X_FOUND AND XRANDR_FOUND) endif() # WiiRemote -if(ENABLE_EVENTCLIENTS) +if(ENABLE_EVENTCLIENTS AND BLUETOOTH_FOUND) add_subdirectory(${CMAKE_SOURCE_DIR}/tools/EventClients/Clients/WiiRemote build/WiiRemote) endif() diff --git a/cmake/scripts/linux/Install.cmake b/cmake/scripts/linux/Install.cmake index 7f8a2f8dba..dc0889e138 100644 --- a/cmake/scripts/linux/Install.cmake +++ b/cmake/scripts/linux/Install.cmake @@ -266,10 +266,12 @@ if(ENABLE_EVENTCLIENTS) DESTINATION ${bindir} COMPONENT kodi-eventclients-ps3) - # Install kodi-eventclients-wiiremote - install(PROGRAMS ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/WiiRemote/${APP_NAME_LC}-wiiremote - DESTINATION ${bindir} - COMPONENT kodi-eventclients-wiiremote) + if(BLUETOOTH_FOUND) + # Install kodi-eventclients-wiiremote + install(PROGRAMS ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/WiiRemote/${APP_NAME_LC}-wiiremote + DESTINATION ${bindir} + COMPONENT kodi-eventclients-wiiremote) + endif() # Install kodi-eventclients-xbmc-send install(PROGRAMS "${CMAKE_SOURCE_DIR}/tools/EventClients/Clients/Kodi Send/kodi-send.py" |