Check out the $<SHELL_PATH:...> generator expression. See docs at the bottom of the following page:
https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html Something like $<SHELL_PATH:$<TARGET_FILE_DIR:foo>> should work I think. On Wed, Dec 7, 2016 at 8:30 AM, Bram de Jong <bram.dej...@gmail.com> wrote: > hi cmake-peoples! > > CMake v3.7.0: I'm using $<TARGET_FILE_DIR:foo> and $<TARGET_FILE:foo> on > Windows and they generate paths with forward slashes... Is there an easy > way to convert these to back-slashes? > > The testing tool (i.e. via add_test( ) ) I am using expects back-slashes... > > - Bram > > -- > http://www.freesound.org > http://www.smartelectronix.com > http://www.musicdsp.org > > Mobile: +49 (0) 176 68279940 > > -- > > 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 > -- Craig Scott Melbourne, Australia https://crascit.com
-- 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