[CMake] Wrong flags in fortran project when use c library

Sebas spaseba at gmail.com
Tue Oct 6 19:38:13 EDT 2009


I have a program write in fortran 95 that use an C library. When I use
TARGET_LINK_LIBRARIES( FortranProgram CLibrary ), the FortranProgram project
of the VS2008 has compiler flags incorrect. Cmake assign flags of the C
compiler.
When i use TARGET_LINK_LIBRARIES( FortranProgram ), the flags are correct.
CLibrary is in her own directory, with ADD_LIBRARY and TARGET_LINK_LIBRARIES
to other C-C++ Librarys.

I use Intel Fortran y Microsoft C/C++ compilers.

Thanks if someone give one clue of the problem.

Sebastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091006/ed1fe032/attachment.htm>


More information about the CMake mailing list