Clion手的删除cmake-build-debug下的文件

 rm -rf  /e/download/ProgramInC-master/programinc/Chapter13/cmake-build-debug/*

运行程序报错

Error: could not load cache

Clion手的删除cmake-build-debug下的文件_第1张图片

File -> reload cmake project

Clion手的删除cmake-build-debug下的文件_第2张图片

MSYS2 命令行解决

rm -rf /e/download/ProgramInC-master/programinc/Chapter13/cmake-build-debug/*
/d/user/Clion/CLion\ 2020.2.3/bin/cmake/win/bin/cmake.exe  --build /e/download/ProgramInC-master/programinc/Chapter13/cmake-build-debug --target install  -- -j 6

Error: could not load cache

mkdir  /e/download/ProgramInC-master/programinc/Chapter13/cmake-build-debug
cd  /e/download/ProgramInC-master/programinc/Chapter13/cmake-build-debug
/d/user/Clion/CLion\ 2020.2.3/bin/cmake/win/bin/cmake.exe  -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" /e/download/ProgramInC-master/programinc/Chapter13

再次install

/d/user/Clion/CLion\ 2020.2.3/bin/cmake/win/bin/cmake.exe  --build /e/download/ProgramInC-master/programinc/Chapter13/cmake-build-debug --target install  -- -j 6

你可能感兴趣的:(Clion手的删除cmake-build-debug下的文件)