[cmake-developers] ExternalProject: Use native paths as substitute for directory tokens

David Cole DLRdave at aol.com
Wed Aug 19 23:27:48 EDT 2015


But some existing replacements require forward slashes, we can't just "to
native path" everything blindly. I think you will have to special case the
bits which do need native paths.


On Wednesday, August 19, 2015, Kislinskiy, Stefan <
s.kislinskiy at dkfz-heidelberg.de> wrote:

> Hi,
>
> I would like to contribute a fix regarding directory tokens (e.g.
> <SOURCE_DIR>) in the ExternalProject module. These tokens are replaced by
> their matching target property value _EP_${dir}. However, the path
> substitutes are not converted to native path style which makes it
> impossible to use directory tokens in some Windows commands like pushd, as
> these commands are not able to handle forward slashes. I attached a tiny
> patch which simply calls file(TO_NATIVE_PATH) before replacing directory
> tokens.
>
> Best regards,
> Stefan Kislinskiy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150819/43814c49/attachment-0001.html>


More information about the cmake-developers mailing list