<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 14 (filtered medium)">
<style><!--
/* Font Definitions */
@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:0in;
        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;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">So I am forcing some flags in a high-level CMakeLists.txt for all fortran sources using the subject command.  When I invoke via one environment (via python subprocess.popen with modified environment), cmake succeeds and all the build files
 are generated, however, my flags don’t appear in the CMAKE build dir file flags.make.  When I launch another environment to build (cmd with modified environment), the build first fails (because my flags weren’t thrown), but if I force cmake to run in the cmd
 env, flags.make then gets updated with my flags and the build succeeds.  Can you help me understand this behavior?  What triggers cmake to write SET(CMAKE_Fortran_FLAGS) to the flags.make file and why might I not be satisfying it in the first environment?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks in advance,<o:p></o:p></p>
<p class="MsoNormal" style="margin-top:6.0pt"><b><span style="font-size:14.0pt;color:#000001;mso-fareast-language:EN-GB">Anthony Ette</span></b><b><span style="color:#1F497D;mso-fareast-language:EN-GB"><br>
</span></b><b><span style="font-size:12.0pt;color:#C6C620;mso-fareast-language:EN-GB">Systems Engineer<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:#C6C620;mso-fareast-language:EN-GB">Simulation and Modeling<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;color:#515151;mso-fareast-language:EN-GB">Controls and Data Services Inc.<br>
Part of the Rolls-Royce Group</span></b><span style="font-size:9.0pt;color:#515151;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:#515151;mso-fareast-language:EN-GB">7661 N Perimeter Rd<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:#515151;mso-fareast-language:EN-GB">Indianapolis, IN 46241<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1F497D;mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:#595959;mso-fareast-language:EN-GB">tel: +1 (317) 230-6943<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:#595959;mso-fareast-language:EN-GB">mob: +1 (317) 864-7975<br>
email: <a href="mailto:Anthony.R.Ette@controlsdata.com"><span style="color:blue">Anthony.R.Ette@controlsdata.com</span></a>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;color:#1F497D;mso-fareast-language:EN-GB"><a href="http://www.controlsdata.com/"><span style="color:blue">www.controlsdata.com</span></a></span><span style="font-size:9.0pt;color:#595959;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
This e-mail (including attachments) contains contents owned by Rolls-Royce plc and its subsidiaries, affiliated companies or customers and covered by the laws of England and Wales, Brazil, US, or Canada (federal, state or provincial). The information contained
 in this email is intended to be confidential, may be legally privileged and subject to export controls which may restrict the access to and transfer of the information. If you are not the intended recipient, you are hereby notified that any retention, dissemination,
 distribution, interception or copying of this communication is strictly prohibited and may subject you to further legal action. Reply to the sender if you received this email by accident, and then delete the email and any attachments.
</body>
</html>