Cleaning CMake installed files

后端 未结 2 1738
清歌不尽
清歌不尽 2020-12-31 07:40

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\",

相关标签:
2条回答
  • 2020-12-31 08:10

    You could ask the authors of the software to add an 'uninstall' target in CMake, see https://gitlab.kitware.com/cmake/community/-/wikis/FAQ#can-i-do-make-uninstall-with-cmake

    so that you can just call make uninstall.

    0 讨论(0)
  • 2020-12-31 08:22

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

    cat install_manifest.txt | sudo xargs rm
    
    0 讨论(0)
提交回复
热议问题