<p>CMAKE_BUILD_TYPE is what you are looking for I guess</p>
<p>Marco Bernasocchi (mobile)<br>
<a href="http://www.opengis.ch">www.opengis.ch</a></p>
<div class="gmail_quote">On Feb 15, 2012 1:36 PM, &quot;Etienne Tourigny&quot; &lt;<a href="mailto:etourigny.dev@gmail.com">etourigny.dev@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I am trying to activate debug output (sent by QgsDebugMsg), and<br>
setting the environment variable &quot;QGIS_DEBUG&quot; has no effect:<br>
<br>
QGIS_DEBUG=1 qgis<br>
Warning: loading of qgis translation failed<br>
[/home/softdev/share/qgis/i18n//qgis_en_US]<br>
Warning: loading of qt translation failed [/usr/share/qt4/translations/qt_en_US]<br>
[no debug output at all]<br>
<br>
<br>
I also tried activating QGISDEBUG with cmake, but no success:<br>
<br>
cmake -D CMAKE_INSTALL_PREFIX=$SOFT_PREFIX  -D<br>
PYTHON_LIBRARY=/usr/lib/<a href="http://libpython2.7.so" target="_blank">libpython2.7.so</a> -D QGISDEBUG=1 ..<br>
[...]<br>
CMake Warning:<br>
  Manually-specified variables were not used by the project:<br>
<br>
    QGISDEBUG<br>
<br>
What is the proper way of compiling and running QGis with debug<br>
messages enabled?<br>
<br>
thanks<br>
Etienne<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div>