From 655ab9b4e2af61bbc7010e5c97ad8da09fa7b232 Mon Sep 17 00:00:00 2001 From: Michael Maltese Date: Mon, 24 Apr 2017 20:06:39 -0700 Subject: CMake: clean up HIDAPI build --- Source/Core/Core/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source') 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) -- cgit v1.2.3