<div>In most cases, \n works everywhere for compilation - you just can&#39;t use windows notepad to edit files like that.  Since only Windows (well, and pre-OS X mac) uses something other than \n as far as I know, you could also just do</div>

<div>if(WIN32)</div>
<div> </div>
<div>and set it yourself if it really does matter in your situation.</div>
<div> </div>
<div>Ryan</div>
<div><br><br> </div>
<div class="gmail_quote">On Sat, Nov 27, 2010 at 11:07 AM, Hicham Mouline <span dir="ltr">&lt;<a href="mailto:hicham@mouline.org">hicham@mouline.org</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div lang="EN-GB" vlink="purple" link="blue">
<div>
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Is there a variable that holds the proper newline for the current platform?</p>
<p class="MsoNormal">\n for unix linux mac</p>
<p class="MsoNormal">\n\r for windows<br><br></p>
<p class="MsoNormal">I need a cmake variable that will hold</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">#include &quot;header1.hpp&quot;</p>
<p class="MsoNormal">#include &quot;header1.hpp&quot;</p>
<p class="MsoNormal">...</p>
<p class="MsoNormal">#include &quot;headern.hpp&quot;</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">and that will be replaced by configure_file to generate a .cxx source file that will contain all these #includes.</p>
<p class="MsoNormal">The newline is therefore essential</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">regards,</p></div></div><br>_______________________________________________<br>Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Ryan Pavlik<br>HCI Graduate Student<br>Virtual Reality Applications Center<br>Iowa State University<br><br><a href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a><br>
<a href="http://academic.cleardefinition.com">http://academic.cleardefinition.com</a><br>Internal VRAC/HCI Site: <a href="http://tinyurl.com/rpavlik">http://tinyurl.com/rpavlik</a><br>