[CMake] What activates the fortran module?

Bill Hoffman bill.hoffman at kitware.com
Mon Jan 25 11:36:17 EST 2010


John Drescher wrote:
> I am testing running cmake to generate Visual Studio 2005 projects
> under wine and things are going good. I have built 2 projects without
> any problems then the third project had the following error:
> 
> CMake Error at C:/Program Files/CMake
> 2.8/share/cmake-2.8/Modules/CMakeFortranInformation.cmake:25
> (GET_FILENAME_COMPONENT):
>   get_filename_component called with incorrect number of arguments
> Call Stack (most recent call first):
>   CMakeLists.txt:1 (PROJECT)
> 
> this error went away after a few tries and I was able to build the 3rd
> project however I now have this on the 4th project. The thing is I
> have no fortran code at all. I suspect that the problem may be due to
> environment variables being carried over from the linux system to
> wine.
> 

You should try cmake --trace and see what file is trying to activate 
Fortran.

-Bill

-- 
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573


More information about the CMake mailing list