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.kislins...@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
-- 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