Hi, I think that the regex replace command presented in the RecipeAddUninstallTarget wiki is not correct.
It is: STRING(REGEX REPLACE " " ";" files "${files}") but it should read STRING(REGEX REPLACE "\n" ";" files "${files}") The current version of the command does not make the script iterating over lists of files, but performs causes a single iteration -- Uninstalling /home/mloskot/usr/include/geos/geos.h /home/mloskot/usr/include/geos/platform.h /home/mloskot/usr/bin/geos-config Corrected version gives output like this: -- Uninstalling /home/mloskot/usr/include/geos/geos.h -- Uninstalling /home/mloskot/usr/include/geos/platform.h -- Uninstalling /home/mloskot/usr/bin/geos-config Am I correct? [1] http://www.cmake.org/Wiki/RecipeAddUninstallTarget -- Mateusz Loskot, http://mateusz.loskot.net Charter Member of OSGeo, http://osgeo.org _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake