Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buildscripts/cmake uninstall target #55

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

LostInKadath
Copy link
Contributor

CMake doesn't support any make uninstall commands by default. This may be embarrassing for users, switching from building with autotools. This PR adds a special uninstall target to do the deinstallation process.

During cmake --install step, an install_manifest.txt file is created, which contains a list of installed files -- binaries, libraries, headers and so on. The uninstall target calls cmake -E rm for every file listed in this manifest. Simple and handy.

To launch the deinstallation process, one can run:

cmake --build .builddir --target uninstall

The information in README.md is updated. An additional workflow is added, which smoke-tests the installation/deinstallation process.

Workflow to check the install/uninstall process;
README.md update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant