[CMake] set ranlib/ar in toolchain file

Yngve Inntjore Levinsen yngve.levinsen at gmail.com
Thu Jul 5 12:39:09 EDT 2012


Hi Eike and Eric,

That was an incredible wild guess, you were spot on. Changing the title to
PROJECT(<project> C CXX Fortran)
instead of having Fortran first in the list solved it. Now both toolchain files 
work.

Why is that though? Something buggy with the Fortran part in cmake?

Thanks!

Best Regards,
Yngve

On Thursday 5. July 2012 17.43.49, Rolf Eike Beer wrote:
> Eric Noulard wrote:
> > if it is the case could try enabling C language first?
> > i.e.
> > project(Whatever C)
> > ...
> > enable_language(Fortran)
> > enable_language(CXX)
> 
> Why not just "project(Whatever C CXX Fortran)" then?
> 
> Eike
> --


More information about the CMake mailing list