<div dir="ltr">Check out the $<SHELL_PATH:...> generator expression. See docs at the bottom of the following page:<div><br></div><div><a href="https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html">https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html</a><br></div><div><br></div><div>Something like $<SHELL_PATH:$<TARGET_FILE_DIR:foo>> should work I think.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 7, 2016 at 8:30 AM, Bram de Jong <span dir="ltr"><<a href="mailto:bram.dejong@gmail.com" target="_blank">bram.dejong@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hi cmake-peoples!<div><br></div><div>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?</div><div><div><br></div><div>The testing tool (i.e. via add_test( ) ) I am using expects back-slashes...</div><span class="HOEnZb"><font color="#888888"><div><br></div><div> - Bram</div><div><br></div>-- <br><div class="m_-6945957172332625854gmail_signature"><a href="http://www.freesound.org" target="_blank">http://www.freesound.org</a><br><a href="http://www.smartelectronix.com" target="_blank">http://www.smartelectronix.com</a><br><a href="http://www.musicdsp.org" target="_blank">http://www.musicdsp.org</a><br><br>Mobile: <a href="tel:%2B49%20%280%29%20176%2068279940" value="+4917668279940" target="_blank">+49 (0) 176 68279940</a></div>
</font></span></div></div>
<br>--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Craig Scott<br><div>Melbourne, Australia</div><div><a href="https://crascit.com" target="_blank">https://crascit.com</a><br></div></div></div></div></div></div></div>
</div>