Alle 14:00, martedì 19 settembre 2006, Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA ha scritto: > I thought about doing it this way. However, then I thought > that there might be some portable way of doing that which would save me > all the IF/ENDIF's. Sounds like something relatively easy to implement. > Should I add that to CMake's bug tracker? > Anyway, thank You for the code snippet. I don't have to look up > the right variables. > I'll vote for this feature request, cmake should have standard variables, compiler independent for settings such as -Wall and -Werror, for example CMAKE_CXX_FLAGS_WARNING_ALL and CMAKE_CXX_FLAGS_WARNING_IS_ERROR. The expertise of knowing main compiler options for all majors compiler is a cmake job. For instance, I have no idea of the equivalent of -Wall and -Werror for the microsoft, sun, intel and any other compiler. All these glory details should be bundled into cmake. Other variables of interest are code coverage and profiling.
> -- > Artur Kedzierski > > > -----Original Message----- > From: Sylvain Benner [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 19, 2006 3:52 > To: Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA; CMake Mailing List > Subject: Re: [CMake] Portable "treat warnings as errors"? > > If there is no such variable, you can still add the flag by yourself within > an IF statement. > > IF(CMAKE_COMPILER_IS_GNUCXX) > SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") > ENDIF(CMAKE_COMPILER_IS_GNUCXX) > > Sylvain > > > ----- Original Message ----- > From: "Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA" > <[EMAIL PROTECTED]> > To: "CMake Mailing List" <cmake@cmake.org> > Sent: Tuesday, September 19, 2006 12:15 PM > Subject: [CMake] Portable "treat warnings as errors"? > > > _______________________________________________ > > CMake mailing list > > CMake@cmake.org > > http://www.cmake.org/mailman/listinfo/cmake ______________________________________________________________________________ --- NOTICE --- CONFIDENTIALITY - This email and any attachments are confidential and are intended for the addressee only. If you have received this message by mistake, please contact us immediately and then delete the message from your system. You must not copy, distribute, disclose or act upon the contents of this email. Thank you. PERSONAL DATA PROTECTION (Law by Decree 30. 06.2003 n. 196) - Personal and corporate data submitted will be used in a correct, transparent and lawful manner. The data collected will be processed in paper or computerized form for the performance of contractual and lawful obligations as well as for the effective management of business relationship. Data may be disclosed, in Italy or abroad, for the purpose above mentioned to third parties which cooperate with Telsey, agents, banks, factoring companies, credit recovering companies, credit insurance companies, professional and consultants, and shipping companies. In relation to the same purposes, data may be processed by the following classes of executors or processors: management; administration department; logistics and purchase department; sales department; post sales department quality department; R&D department; IT department; legal department. The data processor is Telsey S.p.A. The data subject may exercise all the rights set forth in art. 7 of Law by Decree 30. 06.2003 n. 196 as reported in in the following link http://www.telsey.it/privacy.jsp. ______________________________________________________________________________ _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake