<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">On Wed, Apr 10, 2019 at 5:30 PM Marcus Asteborg <<a href="mailto:xnorpx@outlook.com">xnorpx@outlook.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<span>Hi Mark,</span></div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
Thanks for the feedback.</div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
<br>
</div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt">
By default CMake is building the static library in debug, to get other things one has to explicit turn it on.<br>
</div>
<div style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:12pt"><br></div></div></blockquote><div><br></div><div>Hi,</div><div><br></div><div>By default CMake uses the "empty" build, which is used in combination with the environment variables CFLAGS and CXXFLAGS. </div><div><br></div><div>This build type is targeted at Linux distributions which want to use the same compiler flags for multiple packages.</div><div><br></div><div>If you want to change the default build type to something else when CMAKE_BUILD_TYPE is empty, make sure that you do that when $ENV{CFLAGS} and $ENV{CXXFLAGS} are not set.</div><div><br></div><div>There is a blog entry at Kitware <a href="https://blog.kitware.com/cmake-and-the-default-build-type/">https://blog.kitware.com/cmake-and-the-default-build-type/</a> on this topic. Unfortunately it doesn't address the  CFLAGS, CXXFLAGS issue. I guess one can combine the both and have an optimal solution.</div><div><br></div><div>Cheers,</div><div>Cristian.</div><div> </div></div></div></div></div></div>