libiio icon indicating copy to clipboard operation
libiio copied to clipboard

cmake: add uninstall target

Open willcode opened this issue 4 years ago • 1 comments

An "uninstall" target is useful both for development and for source-based package management (PyBOMBS in our case).

While cmake does not have a convenient uninstall, it is typically implemented using code like: https://gist.github.com/royvandam/3033428

willcode avatar Jun 02 '21 10:06 willcode

Thanks - we will have a look - and try to add

rgetz avatar Feb 22 '22 22:02 rgetz

There should be file "install_manifest.txt" after executing make install. Either of the following commands should work:

cat install_manifest.txt | sudo xargs rm

or

xargs sudo rm < install_manifest.txt

Does that solve your issue?

rgetz avatar Feb 08 '23 21:02 rgetz

Hi @rgetz, sure that's fine for a manual uninstall. I put this in originally because PyBOMBS runs make uninstall explicitly. This issue has been up for quite a while, and I don't hear any complaints. Not that surpising since the PyBOMBS recipe calls for an ancient tag. Feel free to close it if adding make uninstall is not a priority.

The recipe has specified v0.21 for a while now. I'd guess that people using PyBOMBS and PLUTO are installing via a package manager.

willcode avatar Feb 09 '23 02:02 willcode

When #961 gets merged - this can be closed.

rgetz avatar May 06 '23 18:05 rgetz

this can be closed - it was included in 0.25

rgetz avatar Oct 16 '23 12:10 rgetz