CMake Error at plumbing_test/CMakeLists.txt:141 (add_executable): Cannot find source file: .cpp Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx CMake Error: CMake can not determine linker language for target: test04_param CMake Error: Cannot determine link language for target "test04_param". -- Generating done -- Build files have been written to: /home/melodic/demo03_ws/build Makefile:1216: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed
时间: 2024-04-12 14:33:54 浏览: 261
linphone-desktop出现Cmake Error at builders/vpx.cmake:89的几个错误文件解决
这个错误是由于在CMakeLists.txt文件中找不到名为".cpp"的源文件引起的。CMake无法确定目标"test04_param"的链接语言。这可能是因为在CMakeLists.txt文件中没有正确指定源文件或链接语言的原因。请检查CMakeLists.txt文件,确保正确指定了源文件和链接语言。
阅读全文