Hi there,

  I am trying to compile a c/c++ project using the free VC toolkit
2003 and I am getting an error about the fortran compiler being not
found:

-- Detecting C compiler ABI info - done
-- Using FREE VC TOOLS, NO DEBUG available
CMake Error at C:/Program Files/CMake
2.6/share/cmake-2.6/Modules/CMakeFortranInformation.cmake:7
(GET_FILENAME_COMPONENT):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:1 (PROJECT)


  I solved it using:
$ cat CMakeFortranInformation.cmake
...
IF(CMAKE_Fortran_COMPILER)
GET_FILENAME_COMPONENT(CMAKE_BASE_NAME ${CMAKE_Fortran_COMPILER} NAME_WE)
ENDIF(CMAKE_Fortran_COMPILER)
...

Let me know if I should report a bug.

Thx
-- 
Mathieu
_______________________________________________
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to