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

Kislinskiy, Stefan s.kislinskiy at Dkfz-Heidelberg.de
Wed Aug 19 21:41:56 EDT 2015


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 --------------
A non-text attachment was scrubbed...
Name: external-project-native-dir-tokens.patch
Type: application/octet-stream
Size: 881 bytes
Desc: external-project-native-dir-tokens.patch
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150820/ea732b13/attachment.obj>


More information about the cmake-developers mailing list