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? > I think for setting compiler flags it is ok to have separate sections for > gcc and msvc. It could also be handle by cmake :) In any case I was making sure I didn't missed something and from your reply it seems I didn't. Thanks. -- Mihai RUSU Email: [EMAIL PROTECTED] GPG : http://dizzy.roedu.net/dizzy-gpg.txt WWW: http://dizzy.roedu.net "Linux is obsolete" -- AST _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
