<div>If anyone&#39;s interested: got it working using MinSizeRel<br></div><div><br></div><div>For now, at least</div><br><div class="gmail_quote">2011/11/24 Felipe Lema <span dir="ltr">&lt;<a href="mailto:felipe.lema@alges.cl">felipe.lema@alges.cl</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>Hi everyone<br clear="all"></div><div><br></div><div>I&#39;m trying to build a custom (C++) library using cmake 2.8.4, mingw32 and intel compiler (icl) on a win7-32 machine, but CMAKE_BUILD_TYPE is not being respected: it&#39;s using the debug flags when building with mingw. I&#39;ve tried setting this variable to &quot;Release&quot; both with the cache editor and editing the CMakeLists.txt file, but flags remain as a debug build.</div>

<div><br></div><div>I have only changed the CMAKE_CXX_FLAGS_RELEASE and CMAKE_CXX_FLAGS_DEBUG, but not CMAKE_CXX_FLAGS. I double checked this with the cache editor.</div><div><br></div><div>Any suggestions? Is it something to do with mingw or with icl? Do mind that everything works as a charm when building in a linux machine</div>
<span class="HOEnZb"><font color="#888888">
<br>-- <br><p>Felipe Lema Salas<br>Ingeniero Civil en Computación<br>Laboratorio ALGES<br>Departamento de Ingeniería en Minas<br>Universidad de Chile<br></p><br><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><p>Felipe Lema Salas<br>Ingeniero Civil en Computación<br>Laboratorio ALGES<br>Departamento de Ingeniería en Minas<br>Universidad de Chile<br></p><img src="http://www.alges.cl/templates/jp_shop/images/logo.jpg"><br>
<br>