include could not find load file: my_custom_cmake_file.cmake
时间: 2024-05-22 21:12:57 浏览: 148
This error message is indicating that CMake is unable to locate the file "my_custom_cmake_file.cmake" which is being included in your CMakeLists.txt file.
There are a few possible reasons for this error:
1. The file "my_custom_cmake_file.cmake" does not exist in the directory you specified. Double-check the path to make sure it is correct and the file exists.
2. The file "my_custom_cmake_file.cmake" exists, but it is not in the same directory as your CMakeLists.txt file. In this case, you need to specify the full path to the file, or add the directory containing the file to the CMAKE_MODULE_PATH variable.
3. You have misspelled the name of the file or included the wrong file. Double-check the name and make sure you are including the correct file.
Once you have addressed the issue, the error message should disappear, and CMake should be able to find and include the specified file.
阅读全文