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

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Jun 29 10:06:51 EDT 2009


My project is: project(foo C CXX) I do not see why it should load any
fortran thingy at any point in time...

And yes I configured using -G "NMake Makefiles"

thx

On Mon, Jun 29, 2009 at 3:28 PM, Renato Elias<rnelias at gmail.com> wrote:
>
> My guess is that Intel Fortran compiler does not support integration with
> free Visual Studio versions. Have you tried to use NMake?
>
> cheers
>
> Renato.
>
>
> On Mon, Jun 29, 2009 at 7:45 AM, Mathieu Malaterre
> <mathieu.malaterre at gmail.com> wrote:
>>
>> 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
>
>
>
> --
> Renato N. Elias
> ===================================
> High Performance Computing Center (NACAD)
> Federal University of Rio de Janeiro (UFRJ)
> Rio de Janeiro, Brazil
>
>



-- 
Mathieu


More information about the CMake mailing list