[CMake] fortran compiler failed to compile simple test program

Brad King brad.king at kitware.com
Tue Jun 16 09:51:27 EDT 2015


On 06/16/2015 09:31 AM, Ette, Anthony (CDS) wrote:
> rts1-4:/home/bzpl46/test2/CMakeFiles/CMakeTmp> /usr/ccs/bin/cf77 CMakeFiles/cmTryCompileExec3453195864.dir/testFortranCompiler.f.o -o cmTryCompileExec3453195864 -rdynamic
> /usr/ccs/release/7.3/lib_ia32/ld: cannot find -lrt

That shows it can be reproduced locally outside of CMake.
Please try dropping -rdynamic from that command line.

-Brad



More information about the CMake mailing list