On Monday 27 August 2007 14:21, Dizzy wrote: > On Monday 27 August 2007 20:36:25 Alexander Neundorf wrote: > > On Monday 27 August 2007 13:29, Dizzy wrote: > > > Hello > > > > > > I use check_cxx_compiler_flag(-ansi -pedantic) to try to use these > > > flags where they are valid. However when using nmake makefiles > > > generator cmake doesn't seem to detect that cl.exe doesn't need them (I > > > noticed cl.exe doesn't error but warns on using those flags but this > > > still means the compiler doesn't support them, not to mention it > > > creates tons of redundant warnings about those flags). > > > > This test only checks whether the compiler fails with an error if used > > with the given flag. > > In that case shouldn't cmake (since it must deal with different compilers > etc) make sure that when using cl.exe it also uses /weX to enable that > warning as an error to check if the flag is supported?
Not sure, maybe. Maybe then some other users will complain about the behaviour ? > > I think for setting compiler flags it is ok to have separate sections for > > gcc and msvc. > > It could also be handle by cmake :) Yes, it could :-) Bye Alex _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
