Cleaning CMake installed files

后端 未结 2 1737
清歌不尽
清歌不尽 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.

提交回复
热议问题