Skip to content
Snippets Groups Projects
Commit 822796eb authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Updated the uinstall command to avoid errors when uninstalling multiple header...

Updated the uinstall command to avoid errors when uninstalling multiple header and/or library files.
parent 2cf53fef
No related branches found
No related tags found
No related merge requests found
Pipeline #5974 failed
......@@ -73,7 +73,8 @@ IF (UNIX)
ADD_CUSTOM_COMMAND(
COMMENT "uninstall package"
COMMAND xargs ARGS rm < install_manifest.txt
COMMAND cat install_manifest.txt | xargs -L1 dirname | sudo xargs rmdir -p --ignore-fail-on-non-empty
COMMAND rm -rd ${CMAKE_INSTALL_PREFIX}/lib/iri/${PROJECT_NAME}
COMMAND rm -rd ${CMAKE_INSTALL_PREFIX}/include/iri/${PROJECT_NAME}
TARGET uninstall
)
ELSE(UNIX)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment