Hey guys,<div><br></div><div>I'm responding to this issue to check on the progress of this. I'm still currently unable to easily set the warning level in Visual Studio to level 4 and I really need to be able to do this. This really is a serious issue for me.</div>
<div><br></div><div>How are things going in this area? Would it be possible to have a quick feature for this in CMake 2.6.4?<br><br><div class="gmail_quote">On Mon, Nov 24, 2008 at 8:42 AM, Bill Hoffman <span dir="ltr"><<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Judicaël Bedouet wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I love the idea to set warning flags in platform files but I don't<br>
understand why new files must be created. Is not it possible to add<br>
warning variables to existent platform files in Modules/Platform ?<br>
<br>
</blockquote></div>
That would be the end goal. However, if someone wanted it sooner it could be done inside a project by creating platform files that could be merged into CVS CMake. My point was that it would be much easier to merge a platform file based solution than a if,else type solution.<div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I wonder if it would be possible to add a CMAKE_WARNING_LEVEL variable<br>
(like CMAKE_BUILD_TYPE) which could take values like Warning1,<br>
Warning2, Warning3, Warning4 (or All, Full, No).<br>
So we could define in platform files CMAKE_CXX_FLAGS_WARNING1_INIT,<br>
CMAKE_CXX_FLAGS_WARNING2_INIT... variables (like<br>
CMAKE_CXX_FLAGS_DEBUG_INIT, CMAKE_CXX_FLAGS_RELEASE_INIT).<br>
The final default value for CMAKE_CXX_FLAGS would be<br>
"${CMAKE_CXX_FLAGS_INIT} ${CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}_INIT}<br>
${CMAKE_CXX_FLAGS_${CMAKE_WARNING_LEVEL}_INIT}".<br>
<br>
I think it would be a great idea that CMake provide default and<br>
portable warning flags.<br>
</blockquote></div>
I am thinking we could use global properties for this, instead of variables. Also, no need to use _INIT type stuff as it would not have to be stored in the cache, and users would never need/want to change them.<div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If you need any help, I would be very pleased to contribute.<br>
<br>
</blockquote></div>
Sounds good.<div><div></div><div class="h5"><br>
<br>
-Bill<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">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>