[CMake] [CMAKE]make uninstall

E. Wing ewmailing at gmail.com
Fri Sep 5 16:42:13 EDT 2008


Can somebody tell me how to enhance this so that it removes empty directories? I am testing the OS X framework building support, and the problem is that all the empty directory husks are left behind.


Also, how bad is it to remove the check:
IF(EXISTS \"\${file}\")\n")

I have code that creates symlinks:
INSTALL(CODE "EXEC_PROGRAM(${CMAKE_COMMAND} ARGS -E create_symlink...) 

I noticed that the IF(EXISTS) check returns false for symlinks and the symlinks are not deleted on uninstall which is not what I want. Removing the IF check solves that problem, but I'm wondering how bad that is. Does anybody have a better solution?



More information about the CMake mailing list