summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorMichael Maltese <michaeljosephmaltese@gmail.com>2017-04-24 20:06:39 -0700
committerMichael Maltese <michaeljosephmaltese@gmail.com>2017-04-27 02:41:00 -0700
commit655ab9b4e2af61bbc7010e5c97ad8da09fa7b232 (patch)
tree327ae6cc9f7055a06a1dd5cc5560097164261707 /Source
parentdd31a403dbcc68388568fece827c3f0887bb4b25 (diff)
CMake: clean up HIDAPI build
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/Core/CMakeLists.txt b/Source/Core/Core/CMakeLists.txt
index 82ab438e87..a96165ee98 100644
--- a/Source/Core/Core/CMakeLists.txt
+++ b/Source/Core/Core/CMakeLists.txt
@@ -339,8 +339,10 @@ else()
message(STATUS "BlueZ explicitly disabled, disabling bluetooth support")
endif()
-if(HIDAPI_FOUND)
+if(TARGET Hidapi::Hidapi)
set(SRCS ${SRCS} HW/WiimoteReal/IOhidapi.cpp)
+ list(APPEND LIBS Hidapi::Hidapi)
+ add_definitions(-DHAVE_HIDAPI=1)
endif()
if(PORTAUDIO_FOUND)