cmake clear cache operation (similar to make clean)

I want to make clean类似的操作delete various files generated by CMake.

It is found that cmake does not have similar operations. You need to manually browse the directories, delete images cmake_install.cmake, CMakeCache.txt CMakeFilesfiles, and CMakeFilesfolders.

Is there cmake cleana command like this to delete all these files automatically? 

By looking at the help of the cmake command, it is found that this can be achieved by creating an additional folder:

cmake -S . -B build

After each operation, just delete the build file directly.

 

Guess you like

Origin blog.csdn.net/daijingxin/article/details/111826612