清理CMake安装的文件 [英] Cleaning CMake installed files

查看:156
本文介绍了清理CMake安装的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用CMake的安装关键字将一些可执行文件/库放置在系统路径中。是否有内置的机制可以执行 distclean之类的操作,删除所有已安装的文件?

I have some executables/libraries being placed into the system paths using CMake's "install" keyword. Is there a built-in mechanism to do something like a "distclean", where all installed files are removed?

无休止的Google搜索反复出现了对话,其中的响应如果问题中提到 cmake和 cleanup,则总是提及 rm -fr,而不必更仔细地阅读它。

Endless Google searches have repeatedly turned-up conversations where the responses always mention "rm -fr " if the question mentions "cmake" and "cleanup", without reading it more closely.

推荐答案

执行 make install后应该有文件 install_manifest.txt。
以下命令应该起作用:

There should be file "install_manifest.txt" after executing "make install". The following command should work:

cat install_manifest.txt | sudo xargs rm

这篇关于清理CMake安装的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆