[CMake] VS Warning Level Compiler Flag

Marco Spatz marco.spatz at icido.de
Fri Oct 1 02:53:33 EDT 2004


Hi,

I'm using cmake to create a VS 7.1 project using OpenSG. The Warning 
Level flag is automatically set to /W3, but this gives my a lot of 
warnings in the OpenSG libraries (seems to be ok, checked their mailing 
list). So I want to lower the warning level to /W1, but I don't know how 
to do that in CMake. Already tried to use the
ADD_DEFINITIOINS(-DW1) and other variations, but this setting always is 
ignored.

Can someone help?

Thx,
Marco


More information about the CMake mailing list