CMake can't find “FindLibUSB.cmake” in CMAKE_MODULE_PATH despite it being there
问题 In my CMakelists.txt file, I specify: set (CMAKE_MODULE_PATH “${<ProjectName>_SOURCE_DIR}/cmake_modules”) And in my project root directory, there's a subdirectory called cmake_modules with a file called FindLibUSB.cmake , but when I run cmake , I get the following error: By not providing "FindLibUSB.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "LibUSB", but CMake did not find one. Why can't it find the file? It seems to me it's