<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>That would mean a lot of duplication for just redefining a particular value. Each compiler will have likely a way too handle the definition of multiple flags with the same purpose and based on that prepending or adding could be performed internally.
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Van:</b> Brad King <brad.king@kitware.com><br>
<b>Verzonden:</b> woensdag 23 augustus 2017 17:33:25<br>
<b>Aan:</b> maikel van den Hurk<br>
<b>CC:</b> cmake-developers@cmake.org<br>
<b>Onderwerp:</b> Re: [cmake-developers] Extend CMAKE_<LANG>_FLAGS(_<CONFIG>) from a CMake Toolchain</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">On 08/23/2017 11:27 AM, maikel van den Hurk wrote:<br>
> change ... optimisation from O3 (CMake internal setting) to O2.<br>
<br>
If you want to change the default flags instead of only adding<br>
(prepending) to them then you need to set all the flags by<br>
setting the cache entry directly.  A toolchain file that wants<br>
such control should be setting all the flags anyway.<br>
<br>
-Brad<br>
</div>
</span></font>
</body>
</html>