<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Pr\00E9-formata\00E7\00E3o HTML Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EstiloDeEmail17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EstiloDeEmail18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.Pr-formataoHTMLChar
        {mso-style-name:"Pr\00E9-formata\00E7\00E3o HTML Char";
        mso-style-priority:99;
        mso-style-link:"Pr\00E9-formata\00E7\00E3o HTML";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=PT-BR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Thank you Alex!<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><pre><span lang=EN-US>&gt;set_source_files_properties(... COMPILE_FLAGS ... ) should do it.<o:p></o:p></span></pre><pre><span lang=EN-US>&gt;<o:p>&nbsp;</o:p></span></pre><pre>&gt;Alex<o:p></o:p></pre><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><pre><span lang=EN-US>On Wednesday 19 October 2011, Renan Greinert wrote:<o:p></o:p></span></pre><pre><span lang=EN-US>&gt;&gt;<i> Hello everybody,<o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> I have a simple Project like this:<o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> set(PROJ_SOURCES<o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i>&nbsp;&nbsp; main.cpp<o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i>&nbsp;&nbsp; manager.cpp<o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i>&nbsp;&nbsp; exceptionhandler.cpp<o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i>&nbsp;&nbsp; sqlite3.c )<o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> #and the following flags for visual studio<o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> set(CMAKE_CXX_FLAGS&nbsp; &quot;${CMAKE_CXX_FLAGS} /EHsc /Oi /Ot /GF /GS- /W4&quot;)<o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> The problem is that we want to compile with warnings level 4 (/W4), but we<o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> have 3rd part files (sqlite3.c in the example) and it throws thousands of<o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> warnings. So, only that file, I'd like to compile with /W0 param.<o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> <o:p></o:p></i></span></pre><pre><span lang=EN-US>&gt;&gt;<i> Is it possible to do that with CMake?<o:p></o:p></i></span></pre><pre><span lang=EN-US><o:p>&nbsp;</o:p></span></pre><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p></div></body></html>