You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMake Error at plumbing_server_client/CMakeLists.txt:136 (add_executable):
No SOURCES given to target: demo01_server
CMakelist配置:
add_executable(demo01_server src/demo01_server.cpp)
Activity
0-0hhj commentedon Apr 16, 2023
问题已解决
原因:之前因为错误命名src文件夹名,所以重新命名其为src,此时src文件名变为“src/src”(但是在vscode中它显示为一个文件夹,实际打开文件夹查看时,发现其在src下又建了一个src,而将cpp文件放在下级src中)
解决:把cpp文件放入上一级,删去多余src