<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">Yes, I know. The problem is that it's a system header I'm not really permitted to modify. <br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Ryan Pavlik &lt;rpavlik@iastate.edu&gt;<br><b><span style="font-weight: bold;">To:</span></b> cmake@cmake.org<br><b><span style="font-weight: bold;">Sent:</span></b> Thu, February 11, 2010 5:57:58 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [CMake] Examples of CMAKE_INCLUDE_TRANSFORMS or other transform rules?<br></font><br><meta http-equiv="x-dns-prefetch-control" content="off">



  

Well, you can really just use forward slashes on all platforms - Not
really an answer to your direct question but might help you with the
underlying situation.<br>
<br>
Ryan<br>
<br>
On 02/11/2010 04:18 PM, Jeremy Nicholl wrote:
<blockquote type="cite">
  
  <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Are
there any examples of how to create transform rules using e.g.
CMAKE_INCLUDE_TRANSFORMS?<br>
I'm using MSYS and I ran into an issue where one of my header files has
the line<br>
#include "foo\bar.h" // Note backslash<br>
In this case, the dependency that gets generated simply appends
"foo\bar.h" to a well-formed MSYS path with forward slashes, and that
seems to mean the file cannot be found. I was wondering if I could
generate a transform rule to simply switch the backslash to a forward
slash for dependency generation purposes, but setting the variable does
not seem to set it when the dependencies are generated (in
DependInfo.cmake, it does not seem to have the variable defined).<br>
  <br>
Thanks for your help.<br>
</div>
  <br>
  <hr size="1">Looking for the perfect gift?<a rel="nofollow" target="_blank" href="http://www.flickr.com/gift/"><b> Give the gift of Flickr!</b></a>
  <pre><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Powered by <a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the CMake FAQ at: <a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</blockquote>
<br>
<pre class="moz-signature">-- <br>Ryan Pavlik<br>HCI Graduate Student<br>Virtual Reality Applications Center<br>Iowa State University<br><br><a rel="nofollow" class="moz-txt-link-abbreviated" ymailto="mailto:rpavlik@iastate.edu" target="_blank" href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a>
<a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://academic.cleardefinition.com">http://academic.cleardefinition.com</a>
Internal VRAC/HCI Site: <a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="http://tinyurl.com/rpavlik">http://tinyurl.com/rpavlik</a></pre>
<meta http-equiv="x-dns-prefetch-control" content="on"></div></div>
</div><br>
      <hr size=1>Make your browsing faster, safer, and easier with the new Internet Explorer® 8. Optimized for Yahoo! <a href="http://downloads.yahoo.com/ca/internetexplorer/"><b>Get it Now for Free! </b></a></body></html>