[CMake] cmake 2.6.4 / Free VC Toolkit 2003 / XPSP2 PSDK

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Jun 29 06:45:18 EDT 2009


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


More information about the CMake mailing list