I badly want to be able to do "make install" in any of our projects (qpid, proton, dispatch) and then easily uninstall any one of those projects by itself. I presently have (at least) qpid, proton and dispatch installed in /usr/local along with some 3rd party tools, so rm -rf /usr/local/* has become impractical.
cmake generates an install_manifest.txt (I've enabled this on all projects) so you can write a simple uninstall script something like: rm -f $(cat <build>/install_manifest.txt) HOWEVER that only works if you still have a build with the correct manifest. If you've cleaned your build or updated and rebuilt a few times then you can't reliably generate a manifest that matches what was actually installed. "Easy" you say. Just install the install_manifest.txt as well! "Sorry Dave, I'm afraid I can't do that" says cmake. CMake (stupidly) generates the manifest *during the install process* so it isn't available until installation is all done and dusted and it's too late. Anyone got another brilliant idea? Cheers, Alan. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
