Greetings,
I am learning cmake I have the following gfortran libraries on my computer:- rt [ ~ ]$ rt [ ~ ]$ ls -l /usr/lib/*gfortran* -rw-r--r-- 1 root root 8489924 Jul 27 12:19 /usr/lib/libgfortran.a -rwxr-xr-x 1 root root 952 Jul 27 12:19 /usr/lib/libgfortran.la lrwxrwxrwx 1 root root 20 Jul 27 12:18 /usr/lib/libgfortran.so -> libgfortran.so.3.0.0 lrwxrwxrwx 1 root root 20 Jul 27 12:19 /usr/lib/libgfortran.so.3 -> libgfortran.so.3.0.0 -rwxr-xr-x 1 root root 4104076 Jul 27 12:20 /usr/lib/libgfortran.so.3.0.0 rt [ ~ ]$ rt [ ~ ]$ ls -l /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/*gfortran* -rw-r--r-- 1 root root 8902 Jul 27 12:18 /usr/lib/gcc/x86_64-unknown-linux- gnu/4.4.2/libgfortranbegin.a -rwxr-xr-x 1 root root 923 Jul 27 12:18 /usr/lib/gcc/x86_64-unknown-linux- gnu/4.4.2/libgfortranbegin.la rt [ ~ ]$ QUESTION1: are there envars to set in a cmake project to enable linking to these programs and if so how so? QURSTION2: If QUESTION1 is {no} can one say set F_LDFLAGS="-L/usr/lib/ - L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.2/" and would it make sense in a cmale project? QUESTION3: libgfortranbegin is avaibale only as a static library, can fortran shared libraries still be linked to it? advice would be appreciated. sincerely luxInteg _______________________________________________ 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