Hi all
    I am using Cmake3.1, and want to generate a Fortran project on Visual 
Studio 2010. And I have ifort 12.1 installed on my computer. After generated 
the project, when I build them, I got error:

  Error  1   fatal error LNK1181: cannot open input file 
'C:\MODELS\build\fabm\0d\models\bb\bb.dir\\filter_feeder.obj'   LINK


The Filter_feeder.obj file is under path  
'C:\MODELS\build\fabm\0d\models\bb\bb.dir\Release\filter_feeder.obj'
While in Fortran project file, it tells Visual studio to look for 
'C:\MODELS\build\fabm\0d\models\bb\bb.dir\($Configuration)\filter_feeder.obj
And apparently, my platform(VS2010 + ifort 12.1) can't recognize 
"($Configuration)" during compilation.


    It is said it's due to the Visual Studio has  changed environment variable 
($ConfigurationName) to  ($Configuration)  from VS2008 to VS2010. Then I  
replaced all ($Configuration) by ($ConfigurationName) in the vfproj file,  the 
compilation worked.

    And by the way, we have several people work on the same project, and two of 
my colleague  using VS2010 and ifort worked perfectly with this CMake 
generating system. Their settings on my colleague's are:

    VS2010, version 10.0.40219.1 SP1Rel
     Intel Visual Fortran Composer XE 2013 Update 1, version 13.0.1.119

And

   VS2010, version 10.0.40219.1 SP1Rel
Intel Visual Fortran Composer XE 2013 Update 1, version 13.0.1.119



And mine is :
       VS2010, version 10.0.40219.1 SP1Rel
    Intel Visual Fortran Composer XE 2013 Update 1, version 12.1.3534


So the only difference was the versions of ifort compiler. My version is a 
little old.


So can CMake take this into consideration when generating project files for 
Fortran?




Best regards

Fen


======================================================================
Fenjuan Hu
Joint Ph.D student of Southern Denmark University and Aarhus University
Adr.: Department of Bioscience, Aarhus University,Vejlsøvej 25, 8600 Silkeborg, 
Denmark
Contact info: [email protected]<mailto:[email protected]>
Contact info:  [email protected]<mailto:[email protected]>
Mobile:  +45 52640478

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to