<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 15 (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:"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:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:"Comic Sans MS";
panose-1:3 15 7 2 3 3 2 2 2 4;}
@font-face
{font-family:"Colonna MT";
panose-1:4 2 8 5 6 2 2 3 2 3;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",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
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
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.EmailStyle20
{mso-style-type:personal;
font-family:"Arial",sans-serif;
color:black;}
span.EmailStyle21
{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: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" id="notables">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">I just wanted to chime in and say we are having the same issue. In an e-mail (defined below) to colleagues, I was under the impression that setting the environment
variable ‘FC’ would do the trick. It wasn’t until after looking through the installed CMake modules that ‘FC’ is completely ignored on Windows when using a Visual Studio generator.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">First E-mail to colleagues:<o:p></o:p></span></p>
<p class="MsoNormal">I did a little research this morning during the planning, and it appears you only need to set the environment variable ‘FC’ to point to ifort.exe. I assume your systems already have this variable based on what is installed by Intel, so
all that really needs to be done is set the path internally. Here is an example that you should be able to plug into your CMakeLists.txt for BigTac for testing. Just update the paths to the required ifort.exe for the appropriate generator.<span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas">cmake_minimum_required(VERSION 3.5.2 FATAL_ERROR)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"># this must be performed before calling project<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"># to set the fortran compiler... for intel, FC<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"># is used to identify the fortran compiler that<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"># cmake will pick up on and use to determine abi<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas">if (CMAKE_GENERATOR MATCHES "^Visual Studio")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> if (CMAKE_GENERATOR MATCHES "^Visual Studio 10")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> # set the path to the fortran compiler for vs2010<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> set(ENV{FC} "C:/Path/To/VS2010/ifort.exe")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> elseif (CMAKE_GENERATOR MATCHES "^Visual Studio 14")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> # set the path to the fortran compiler for vs2015<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> set(ENV{FC} "C:/Path/To/VS2015/ifort.exe")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> else ( )<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> # remove from the environment just in case one is set<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> unset(ENV{FC})<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> endif ( )<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> if (NOT EXISTS "$ENV{FC}")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> # indicate to the user that the fortran library could not be found<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> # but allow the process to continue, as it should still generate c / c++ / c#<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> message(AUTHOR_WARNING<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> "Unable to set the Intel Fortran compiler for "<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> "the specified MSVC generator '${CMAKE_GENERATOR}'!!!")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> else ( )<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> # message the path to the compiler to use<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> message(STATUS "Fortran compiler: '$ENV{FC}'")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"> endif ( )<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas">endif ( )<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:Consolas">project(cmake-fortran-test)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">--------------------- First E-mail to colleagues End ---------------------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Second E-mail to colleagues:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">So, I did a bit more looking into this and this appears to be an issue with how Intel integrates with Visual Studio. I would say if you create a simple Fortran project that the wrong version of the Intel compiler
will be used to compile the project. Please do try the statements below to see if this corrects the issue; though, I am not optimistic it will based on my research. I overlooked the internal files related to the FC environment variable, as it is used if
Visual Studio is not used. I’ll pose the question to CMake, as I am not finding good information on this.</span><span style="font-size:11.0pt;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">From what I see, the try compile of a temp project sets a post build command that sets the compiler path.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">for %%i in (ifort.exe) do @echo CMAKE_Fortran_COMPILER=%%~$PATH:i<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Modifying the PATH environment variable will not work because visual studio appends to the front of the PATH certain paths, one of them being the location of the Fortran compiler. This path appears to be associated
to the registry variable HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Intel\Compilers\Fortran\121.258\IA32\VSNet2010\BinDir.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">To be able to help here more, I would need to get a machine with both compilers (VS and Intel) installed on a system to test some ideas out. It may be as easy as making sure that when you install to your system
the Intel compilers, make sure to install the older Intel compiler first to make the association to VS2010 and then install the newer Intel compiler making only the association to VS2015. It sounds like there should be the capabilities to indicate which version
to integrate with based on the following article:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><a href="https://software.intel.com/en-us/articles/using-older-intel-visual-fortran-versions-in-different-microsoft-visual-studio-versions">https://software.intel.com/en-us/articles/using-older-intel-visual-fortran-versions-in-different-microsoft-visual-studio-versions</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">It may be possible to just reset the registry variable for VS2010. I am assuming that it is getting messed up, but I cannot tell without having both on a system to play around with.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I’ll post the question to the CMake forum tomorrow to see if anyone can help with this situation. This cannot be unique to us. I’ll keep you apprised, but if you have a machine I may be able to test with, please
let me know.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks and good day guys.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">--------------------- Second E-mail to colleagues End ---------------------------------<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">I have not sat down to try and figure this out any further, but I would be very interested in knowing what is the best solution. For our case, there is a project
that builds under VS2010 and Intel’s VS2010 compatible Fortran compiler. Installing VS2015 on the same machine with Intel’s VS2015 compatible Fortran compiler causes issues when trying to generate a VS2010 version of the solution, as Intel’s VS2015 compatible
Fortran compiler is always selected. In the article posted, there is a way to preserve older compiler versions within older visual studio versions, but I have not looked into that as an option yet. I hope to get there one day. It would be nice if this was
a bit more configurable from within CMake so that such operations are not required to be performed.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal" style="text-autospace:none"><i><span style="font-size:16.0pt;font-family:"Colonna MT";color:#1F497D">Ryan H. Kawicki</span></i><i><span style="font-size:18.0pt;font-family:"Colonna MT";color:#1F497D"><o:p></o:p></span></i></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:8.0pt;font-family:"Comic Sans MS";color:#1F497D"><o:p> </o:p></span></p>
</div>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> CMake [mailto:cmake-bounces@cmake.org]
<b>On Behalf Of </b>Arjen Markus<br>
<b>Sent:</b> Friday, April 13, 2018 2:03 AM<br>
<b>To:</b> William Clodius <w.clodius@icloud.com>; cmake@cmake.org<br>
<b>Subject:</b> Re: [CMake] Testing with multiple Fortran compilers<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Hi William,<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">The compiler is not determined via this line – that merely retrieves the name component from the full path to the actual compiler
executable. CMake uses a number of methods, if I may express it that way, to determine which compiler (Fortran or otherwise to use). One of them is the FC environment variable. If that is not set, it searches through a list of possible compiler commands.
<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">As for CMakeCache.txt and the like: it is best to start a build in a clean directory. Left-overs from a previous build may confuse
the configuration and actual building of the program or programs.<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">(As for get_file_component: In the PLplot project the PATH part of the full path to the compiler is used to fine-tune the directories
where the compiler libraries are to be found.)<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Regards,<o:p></o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><o:p> </o:p></span></p>
<p style="margin:0in;margin-bottom:.0001pt"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Arjen<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><br>
<a name="content_display_finish"></a><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#008BBF">Arjen Markus</span></b><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#008BBF"><br>
Sr. Adviseur/Onderzoeker</span><span lang="EN-GB"><o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="3" cellpadding="0">
<tbody>
<tr>
<td valign="bottom" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#008BBF">T<o:p></o:p></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#008BBF">+31(0)88 335 8559<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td valign="bottom" style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#008BBF">E
<o:p></o:p></span></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#008BBF">Arjen.Markus@deltares.nl<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-GB" style="display:none"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="3" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="1" cellspacing="3" cellpadding="0" style="border:none;border-top:solid #008BBF 1.0pt">
<tbody>
<tr>
<td valign="bottom" style="border:none;padding:.75pt .75pt .75pt .75pt">
<table class="MsoNormalTable" border="0" cellspacing="3" cellpadding="0">
<tbody>
<tr style="height:24.0pt">
<td style="padding:.75pt .75pt .75pt .75pt;height:24.0pt">
<p class="MsoNormal"><a href="http://www.deltares.com/"><span style="text-decoration:none"><img border="0" width="120" height="30" id="_x0000_i1029" src="cid:image001.png@01D3D56A.3EA9C740" alt="Logo"></span></a><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#008BBF"><a href="http://www.deltares.com/"><b><span style="color:#008BBF;text-decoration:none"> www.deltares.com</span></b></a><o:p></o:p></span></p>
</td>
<td width="35" valign="bottom" style="width:24.0pt;border:none;padding:.75pt .75pt .75pt .75pt">
</td>
<td valign="bottom" style="border:none;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#008BBF">Postbus 177<br>
2600 MH Delft<o:p></o:p></span></p>
</td>
<td width="43" valign="bottom" style="width:30.0pt;border:none;padding:.75pt .75pt .75pt .75pt">
</td>
<td valign="bottom" style="border:none;padding:.75pt .75pt .75pt .75pt">
<table class="MsoNormalTable" border="0" cellspacing="3" cellpadding="0">
<tbody>
<tr>
<td style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><a href="http://www.twitter.com/deltares"><span style="text-decoration:none"><img border="0" width="15" height="15" id="_x0000_i1028" src="cid:image002.png@01D3D56A.3EA9C740" alt="Deltares Twitter"></span><br>
</a><o:p></o:p></p>
</td>
</tr>
<tr>
<td style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><a href="http://www.linkedin.com/company/217430"><span style="text-decoration:none"><img border="0" width="15" height="15" id="_x0000_i1027" src="cid:image003.png@01D3D56A.3EA9C740" alt="Deltares LinkedIn"></span></a><o:p></o:p></p>
</td>
</tr>
<tr>
<td style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><a href="https://www.facebook.com/pages/Deltares/154189334634001"><span style="text-decoration:none"><img border="0" width="15" height="15" id="_x0000_i1026" src="cid:image004.png@01D3D56A.3EA9C740" alt="Deltares Facebook"></span></a><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:8.0pt;font-family:"Verdana",sans-serif;color:#028F13"><br>
<img border="0" width="13" height="15" id="_x0000_i1025" src="cid:image005.png@01D3D56A.3EA9C740" alt="Think before printing">Please consider the environment before printing this email</span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-GB"><o:p> </o:p></span></p>
<p><span lang="EN-GB" style="font-size:10.0pt">> -----Original Message-----<br>
> From: CMake [<a href="mailto:cmake-bounces@cmake.org">mailto:cmake-bounces@cmake.org</a>] On Behalf Of William Clodius<br>
> Sent: Friday, April 13, 2018 4:34 AM<br>
> To: cmake@cmake.org<br>
> Subject: [CMake] Testing with multiple Fortran compilers<br>
><br>
> I have been using CMake with gfortran for a number of years, and now want test<br>
> my code with ifort. I want to switch easily switch between compilers. My<br>
> CMakeLists.txt file is based on the fortran example from make.org an appears to<br>
> have most of the infrastructure needed, but I don’t understand how the line<br>
><br>
> get_filename_component (Fortran_COMPILER_NAME<br>
> ${CMAKE_Fortran_COMPILER} NAME)<br>
><br>
> determines the Fortran compiler to be used. Does it examine the FC system<br>
> variable? Does it require the full pathname to the compiler executable? Do I have to<br>
> delete the CMakeCache.txt, Makefile, and cmake_install.cmake each time I change<br>
> compilers?<br>
> --<br>
><br>
> Powered by www.kitware.com<br>
><br>
> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Kitware offers various services to support the CMake community. For more<br>
> information on each offering, please visit:<br>
><br>
> CMake Support: <a href="http://cmake.org/cmake/help/support.html">http://cmake.org/cmake/help/support.html</a><br>
> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html">http://cmake.org/cmake/help/consulting.html</a><br>
> CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html">http://cmake.org/cmake/help/training.html</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="https://cmake.org/mailman/listinfo/cmake">https://cmake.org/mailman/listinfo/cmake</a></span><span lang="EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this
message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences
and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail.
<o:p></o:p></span></p>
</div>
</body>
</html>