mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
cmake: Expand enabled drivers sanity check
Makes it possible to build monado with only one native driver enabled.
This commit is contained in:
parent
a9e6c24eb2
commit
9f6b5ad841
|
@ -78,8 +78,13 @@ option(BUILD_WITH_HYDRA "Enable Hydra driver" ON)
|
|||
# Error checking
|
||||
###
|
||||
|
||||
if(NOT BUILD_WITH_OPENHMD AND NOT BUILD_WITH_HIDAPI)
|
||||
message(FATAL_ERROR "You must enable at least one driver: either provide OpenHMD and enable BUILD_WITH_OPENHMD (for a variety of devices via OpenHMD), or provide HIDAPI and enable BUILD_WITH_HIDAPI (for the HDK driver)")
|
||||
if(
|
||||
NOT BUILD_WITH_OPENHMD
|
||||
AND NOT BUILD_WITH_VIVE
|
||||
AND NOT BUILD_WITH_HDK
|
||||
AND NOT BUILD_WITH_PSMV
|
||||
AND NOT BUILD_WITH_HYDRA)
|
||||
message(FATAL_ERROR "You must enable at least one driver: either provide OpenHMD and enable BUILD_WITH_OPENHMD (for a variety of devices via OpenHMD), or enable one of Monado's native drivers.")
|
||||
endif()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue