[CMake] back-slashes for generator expression on windows

Bram de Jong bram.dejong at gmail.com
Tue Dec 6 16:30:18 EST 2016


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20161206/d287d085/attachment.html>


More information about the CMake mailing list