On 07/20/2016 03:58 PM, Stuermer, Michael SP/HZA-ZSEP wrote:

Using the patchfile support I managed to implement the service installation 
issue I had, so the unnecessary features from the last patch are removed now.

I tested all patches separately and hope they work now.

looking forward for feedback,


To start with I don't think I really like the first patch as it is.

We should either require that install file locations are canonical (which is what I went for when I initially implemented them; I think I would still prefer it that way),
or perform more complete and consistent canonicalization. e.g.

- The implementation as-is only works with cmake's internal path separation (forward slash). Given the canonical path "foo/bar" the path "foo\bar" does not currently work. So neither should a backslash work in a prefix e.g. ".\foo/bar". I'd also like to think of these paths as portable (should any other CPack generator choose to implement install properties as well) which is why I think we should not support (canonicalize) windows path separators anywhere in the path.

- Handling "." only as a singular prefix is inconsistent.
If we do implement this then ".." should also be supported and canonicalization should work anywhere in the path. e.g. given the canonical path "foo/bar/baz" these should refer to the same path:
        - "./foo/bar/baz"
        - "././foo/bar/baz"
        - "foo/./bar/baz"
        - "foo/../foo/bar/baz"
        etc.

Nils
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to