Merge pull request #1268 from daleglass/do-not-use-leapmotion-by-default

Don't use LeapMotion by default.
This commit is contained in:
Kalila 2021-07-01 17:10:53 -04:00 committed by GitHub
commit 4110e9f65b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,12 @@
# See the accompanying file LICENSE or http:#www.apache.org/licenses/LICENSE-2.0.html
#
find_package(LEAPMOTION)
if (USE_LEAPMOTION)
find_package(LEAPMOTION)
else()
message(STATUS "Use of Leap Motion SDK not enabled. Run cmake with -DUSE_LEAPMOTION=1 to use it.")
endif()
if (LEAPMOTION_FOUND)
set(TARGET_NAME hifiLeapMotion)
setup_hifi_plugin(Qml)