summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
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)