diff --git a/lang/CMakeLists.txt b/lang/CMakeLists.txt index 9f64006567e..3f54229582e 100644 --- a/lang/CMakeLists.txt +++ b/lang/CMakeLists.txt @@ -172,7 +172,7 @@ endif(WIN32) if(SC_HIDAPI) list(APPEND sclang_sources LangPrimSource/SC_HID_api.cpp) - find_package(hidapi REQUIRED) + find_package(hidapi CONFIG REQUIRED) include_directories( ${CMAKE_SOURCE_DIR}/external_libraries/hidapi )