[CMake] error on Mac while creating a fortran library

Manav Bhatia bhatiamanav at gmail.com
Mon Sep 30 12:15:36 EDT 2013


Hi,

    I am attempting to compile a  library (Dakota) on my Mac workstation,
but the process exits while attempting to create a library from fortran
code in order to test the fortran compiler installation.

The .o file is built without problems, but at the stage when it is supposed
to run the "ar" command like this:

ar cr libVerifyFortran.a CMakeFiles/VerifyFortran.dir/VerifyFortran.f.o

it appears as

 "" cr libVerifyFortran.a CMakeFiles/VerifyFortran.dir/VerifyFortran.f.o

It appears that cmake is unable to find the archive command "ar".

I am using cmake and fortran from macports. Does this seem to be an error
with my cmake installation or some missing cmake value that I need to set?

Any help will be appreciated.

Thanks,
Manav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130930/9259c745/attachment.htm>


More information about the CMake mailing list