Bill,<div><br></div><div>I forgot to provide details for the build case that fails when using IVF 11 with the Visual Studio 9 2008 Generator. Assuming that I have a hacked version of CMake that produces .vfproj files with Version="11.0", the following project will generate a .sln (and .vfproj) file, but the project fails to generate the requested library:</div>
<div><br></div><div>[ftest.f]</div><div><div> subroutine foo</div><div> print *, "hello"</div><div> end subroutine</div><div><br></div><div>[CMakeLists.txt]</div><div><div>cmake_minimum_required(VERSION 2.6)</div>
<div>project(FortranTestFLib)</div><div>enable_language( Fortran )</div><div>set(CMAKE_VERBOSE_MAKEFILE ON)</div><div>add_library(flib ftest.f)</div><div>set_target_properties( flib PROPERTIES LINKER_LANGUAGE Fortran )</div>
<div><br></div><div>Thanks,</div><div><br></div><div>-kt</div></div><br><div class="gmail_quote">On Tue, Jun 2, 2009 at 5:32 PM, Kelly (KT) Thompson <span dir="ltr"><<a href="mailto:kt@transpireinc.com">kt@transpireinc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Bill,<div><br></div><div>Thanks for offering to look into this problem with Intel Visual Fortran integrated into Visual Studio. We are trying to patch up our CMake files so that we can build using the Visual Studio IDE (NMake Makefiles work fine) and have run into this where Intel Visual Fortran 11.0 (full version, 32 and 64-bit environments) refuses to work. I tried hacking the CMake source code to put "11.0" into the vfproj files (as suggested by <a href="mailto:Tormod.Ravnanger.Landet@dnv.com" target="_blank">Tormod.Ravnanger.Landet@dnv.com</a>), but that didn't solve all of our issues. Anyway,...</div>
<div><br></div><div>I decided to look around to see if I could come up with something useful for detecting which IVF is integrated with Visual Studio. I found some potentially useful information in HKCU (shown below). You will notice that there is a key for each IVF that has been integrated with Visual Studio. In my case, I see versions 10.1.025, 11.0.039 and 11.0.074. However, when I run Visual Studio, I can only access the newest version of ifort (I even tried running devenv /useenv from my IVF 10.1 command prompt but ended up with 11.0.074 inside of visual studio). Also, each key has several values that I have removed from the output below. I provided a sampling from the last key.</div>
<div><br></div><div>Another indicator of IVF's version are the environment variables that are set by Intel's installer. I have the following:</div><div><br></div><div><div>IFORT_COMPILER10=C:\Program Files (x86)\Intel\Compiler\Fortran\10.1.025</div>
<div>IFORT_COMPILER11=C:\Program Files (x86)\Intel\Compiler\11.0\074\fortran\</div></div><div><br></div><div>It would be great to see IVF 11 support with Visual Studio Generators. Thanks for taking a look!</div><div><br>
</div><div>-kt</div><div><br></div><div>======================================================================</div><div><div><div>[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Intel Fortran]</div><div><br></div>
<div>[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Intel Fortran\VFToolOpt]</div><div><br></div><div>[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Intel Fortran\VFToolOpt\101]</div><div>"ExtFree"=".f90;.F95"</div>
<div>"ExtFixed"=".f;.for;.fpp"</div><div>"HeadersFree"=""</div><div>"HeadersFixed"=".fi;.fd"</div><div>"LogBuilds"=dword:00000001</div><div>"ContinueOnErrors"=dword:00000000</div>
<div>"ShowEnvInLog"=dword:00000000</div><div><br></div><div>[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Intel Fortran\VFToolOpt\101\101.025]</div><div><br></div><div>[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Intel Fortran\VFToolOpt\101\101.025\IA32_EM64T]</div>
<div><br></div><div>[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Intel Fortran\VFToolOpt\101\101.025\IA32_IA32]<br></div><div><br></div></div><div><div>[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Intel Fortran\VFToolOpt\101\SelectedCompilers]</div>
<div>"IA32"="101.025|IA32_IA32"</div><div><br></div><div>[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Intel Fortran\VFToolOpt\110]</div><div>"ExtFree"=".f90;.F95"</div><div>
"ExtFixed"=".for;.fpp"</div><div>"HeadersFree"=""</div><div>"HeadersFixed"=".fi;.fd"</div><div>"LogBuilds"=dword:00000001</div><div>"ContinueOnErrors"=dword:00000000</div>
<div>"ShowEnvInLog"=dword:00000000</div></div><div><br></div><div><div>[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Intel Fortran\VFToolOpt\110\110.039]</div><div><br></div><div>[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Intel Fortran\VFToolOpt\110\110.039\EM64T_EM64T]</div>
</div><div><br></div><div>[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Intel Fortran\VFToolOpt\110\110.039\IA32_IA32]<br></div><div><br></div><div><div>[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Intel Fortran\VFToolOpt\110\110.074]</div>
<div><br></div><div>[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Intel Fortran\VFToolOpt\110\110.074\EM64T_EM64T]</div><div><br></div><div>[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Intel Fortran\VFToolOpt\110\110.074\IA32_IA32]<br>
</div><div><div>"BinDir"="$(IFortInstallDir)bin\\ia32;$(CommonProgramFiles)\\Intel\\Shared Files\\Ia32\\Bin;$(VSInstallDir)Common7\\IDE;$(VCInstallDir)BIN;$(VSInstallDir)Common7\\Tools;$(VSInstallDir)Common7\\Tools\\bin;$(FrameworkDir)$(FrameworkVersion);$(WindowsSdkDir)bin;$(PATH)"</div>
<div>"LibDir"="$(IFortInstallDir)lib\\ia32;$(VCInstallDir)atlmfc\\lib;$(VCInstallDir)lib;$(WindowsSdkDir)lib;"</div><div>"IncludeDir"="$(IFortInstallDir)include;$(IFortInstallDir)include\\ia32;$(VCInstallDir)atlmfc\\include;$(VCInstallDir)include;$(WindowsSdkDir)include;"</div>
<div>"DefaultOptions"="/Qvc9 /Qlocation,link,\"$(VCInstallDir)bin\""</div></div></div><div><br></div></div><div><div>======================================================================<br>
</div></div><div><div></div><div class="h5"><br><div class="gmail_quote">On Thu, Dec 18, 2008 at 5:16 AM, Bill Hoffman <span dir="ltr"><<a href="mailto:bill.hoffman@kitware.com" target="_blank">bill.hoffman@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><a href="mailto:Tormod.Ravnanger.Landet@dnv.com" target="_blank">Tormod.Ravnanger.Landet@dnv.com</a> wrote:<br>
<br>
</div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-------------------<br>
Intel(R) Visual Fortran Compiler Professional for applications running<br>
on IA-32, Version 11.0 Build 20081105 Package ID: w_cprof_p_11.0.066<br>
Copyright (C) 1985-2008 Intel Corporation. All rights reserved.<br>
30 DAY EVALUATION LICENSE<br>
<br>
ifort: NOTE: The evaluation period for this product ends on 9-jan-2009<br>
UTC.<br>
ifort: command line error: no files specified; for help type "ifort<br>
/help"<br>
-------------------<br>
<br>
Everything up to and including "w_cprof_p_11.0.066" is on one line<br>
<br>
</blockquote></div>
I guess what really matters is which version of ifort is integrated by default into the visual studio IDE. There must be some way to figure that out...<br><font color="#888888">
<br>
-Bill</font><div><div></div><div><br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br></div>