<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)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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=NL link=blue vlink=purple>

<div class=WordSection1>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>As a follow-up:
redefining CMAKE_Fortran_LINK_EXECUTABLE to not include &lt;FLAGS&gt; gets rid
of the CMAKE_Fortran_FLAGS.. but perhaps other (useful) stuff as well? As a
sidetrack I&#8217;m starting to wonder what the purpose of
CMAKE_&lt;LANG&gt;_FLAGS is. The book lists it as cmake&#8217;s counterpart of
the environment variable, e.g. CMAKE_CXX_FLAGS and CXXFLAGS from the shell,
which means it doesn&#8217;t make sense to include it when linking. Am I
overlooking something here </span><span lang=EN-US style='font-family:Wingdings;
color:#1F497D'>J</span><span lang=EN-US style='color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Regards,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Arjen<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> cmake-bounces@cmake.org
[mailto:cmake-bounces@cmake.org] <b>On Behalf Of </b>Verweij, Arjen<br>
<b>Sent:</b> maandag 12 juli 2010 18:13<br>
<b>To:</b> cmake@cmake.org<br>
<b>Subject:</b> [CMake] CMAKE_&lt;LANG&gt;_FLAGS added to link rule<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Hi,<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span lang=EN-US>It seems that in our project the contents
of CMAKE_&lt;LANG&gt;_FLAGS is added to the link line. This causes problems for
some of our platforms. Is there a mechanism to separate language specific
compile and link flags out? It would be nice if you could define
CMAKE_&lt;LANG&gt;_COMPILER_FLAGS and CMAKE_&lt;LANG&gt;_LINK_FLAGS separately.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>I could write a wrapper around
add_executable() and add_library() but I would prefer something standard.
Looking at cmake-2.8.1/Modules/CMakeFortranInformation.cmake, I can&#8217;t
really find much except that CMAKE_Fortran_LINK_EXECUTABLE is set, but
CMAKE_Fortran_FLAGS are not included.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Regards,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US>Arjen<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<table class=MsoNormalTable border=1 cellspacing=0 cellpadding=0 width=529
 style='width:396.75pt;border-top:solid gray 1.0pt;border-left:none;border-bottom:
 solid gray 1.0pt;border-right:none'>
 <tr>
  <td width=529 colspan=3 style='width:396.75pt;border:none;padding:0cm 0cm 0cm 0cm'>
  <p class=MsoNormal style='mso-margin-top-alt:3.0pt;margin-right:0cm;
  margin-bottom:3.0pt;margin-left:0cm'><b><span style='font-size:10.0pt;
  font-family:"Arial","sans-serif";color:black'>Arjen Verweij</span></b><b><span
  style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#333399'><br>
  </span></b><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
  color:#F79646'>QA/Test Engineer</span></b><span style='font-size:12.0pt;
  font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td width=165 rowspan=2 style='width:123.75pt;border:none;padding:0cm 0cm 0cm 0cm'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
  style='font-size:9.0pt;font-family:"Arial","sans-serif";color:black'><img
  width=155 height=87 id="Picture_x0020_1"
  src="cid:image001.gif@01CB21F5.056CED80" alt=www.tass-safe.com></span></b><span
  style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
  </td>
  <td width=14 rowspan=2 style='width:10.5pt;border:none;padding:0cm 0cm 0cm 0cm'></td>
  <td width=350 style='width:262.5pt;border:none;padding:0cm 0cm 0cm 0cm'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
  style='font-size:9.0pt;font-family:"Arial","sans-serif";color:black'><br>
  Einsteinlaan 6<br>
  2289 CC&nbsp; Rijswijk<br>
  The Netherlands</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
  color:black'><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td style='border:none;padding:0cm 0cm 0cm 0cm'>
  <p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Arial","sans-serif";
  color:black'>Phone:&nbsp;&nbsp;+31&nbsp;88&nbsp;827 7086<br>
  Fax:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+31&nbsp;88 827&nbsp;7003<br>
  Email:&nbsp;&nbsp;arjen.verweij@tass-safe.com<o:p></o:p></span></p>
  <p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
  color:black'>www.tass-</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
  color:#F79646'>safe</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
  color:black'>.com</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
  color:black'><o:p></o:p></span></p>
  </td>
 </tr>
 <tr>
  <td width=529 colspan=3 style='width:396.75pt;border:none;padding:0cm 0cm 0cm 0cm'>
  <p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Arial","sans-serif";
  color:black'>This e-mail and its contents are subject to a </span><span
  lang=EN-US style='font-size:8.0pt;font-family:"Arial","sans-serif";
  color:#595959'>DISCLAIMER</span><span lang=EN-US style='font-size:8.0pt;
  font-family:"Arial","sans-serif";color:black'> with important RESERVATIONS.</span><span
  lang=EN-US style='font-size:8.0pt'><o:p></o:p></span></p>
  </td>
 </tr>
</table>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

</div>

</div>

</body>

</html>