<div dir="ltr"><br><br><div class="gmail_quote">On Tue, Sep 23, 2008 at 11:05 PM, George Neill <span dir="ltr"><<a href="mailto:georgen@neillnet.com">georgen@neillnet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Manu,<br>
<div class="Ih2E3d"><br>
On Tue, Sep 23, 2008 at 1:54 PM, Emmanuel Blot <<a href="mailto:eblotml@free.fr">eblotml@free.fr</a>> wrote:<br>
>> The only way would be something like this:<br>
>><br>
>> set(a "-mcpu=arm7tdmi -std=gnu99 -fgnu89-inline -finline-functions")<br>
>> set(a "${a} -ffunction-sections -fdata-sections ")<br>
>> set(a "${a} -fno-strict-aliasing -mno-thumb -Os -fomit-frame-pointer")<br>
<br>
</div>I use a list.<br>
<br>
SET(MY_C_FLAGS<br>
-O3<br>
-m32<br>
-DNDEBUG<br>
-D_LARGEFILE_SOURCE<br>
-D_FILE_OFFSET_BITS=64<br>
-s # strip debug symbols<br>
)<br>
<br>
Then turn it into a string later, I haven't ran into any issues doing<br>
it this way yet.</blockquote><div>But this turns into list (in terms of cmake) that is string with semicolon-separated elements (not space-separated).<br>And this may be a problem in some cases, and initial compile flags seems to be the case.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
HTH,<br>
<font color="#888888">George.<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>