[CMake] RecipeAddUninstallTarget fix

Mateusz Loskot mateusz at loskot.net
Fri Mar 5 19:39:29 EST 2010


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


More information about the CMake mailing list