Re: [CMake] Cmake-Gfortran-problem

2014-03-07 Thread Nils Gladitz
On 07.03.2014 10:01, renshenguoer wrote: C:\MinGW\bin\gfortran.exe /F600 /fpe:3 /Qopenmp /w /I:"C:\Program Files (x86)\VNI\imsl\fnl700\winin111e64\include\dll" /nologo -c L:\PSUADEv1.6-build\CMakeFiles\CMakeTmp\testFortranCompiler.f -o CMakeFiles\cmTryCompileExec400521423.dir\test

[CMake] Cmake-Gfortran-problem

2014-03-07 Thread renshenguoer
-> no --has-pnetcdf-> no --has-szlib -> --prefix -> /usr --includedir-> /usr/include --version -> netCDF 4.1.3 -- View this message in context: http://cmake.3232098.n2.nabble.com/Cmake-Gfortran-problem-tp7586931.html Sent from the CMake mailing list archiv

[CMake] gfortran and -header_pad_max_install_names on OS X

2010-12-15 Thread Jed Brown
It appears that CMake is adding this automatically to the link line, but the user reporting this issue is using a normal gfortran which does not recognize this option. How should I get CMake to link properly with this non-Apple compiler (I think it just needs to leave out that option)? ___

Re: [CMake] cmake gfortran-libs linking x86_64

2010-11-07 Thread luxInteg
On Sunday 07 November 2010 11:00:03 Eric Noulard wrote: > enable_language(Fortran) > > for mixed language programming you have the > FortranCInterface cmake module: > http://www.cmake.org/cmake/help/cmake-2-8-docs.html#module:FortranCInterfac > e > > If you search the ML archive you will find m

Re: [CMake] cmake gfortran-libs linking x86_64

2010-11-07 Thread Eric Noulard
2010/11/7 luxInteg : > 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/l

[CMake] cmake gfortran-libs linking x86_64

2010-11-07 Thread luxInteg
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

Re: [CMake] cmake gfortran project question

2010-11-06 Thread Michael Hertling
On 11/05/2010 07:21 PM, luxInteg wrote: > Greetings, > > I have a little learning progect using cmake with gfortran. > > SOURCE files: .f, .f xxx.f and .f .y > > I want to do the following:- > > > a) create a shared library libFFF.so and a static one libFFF.a (from

[CMake] cmake gfortran project question

2010-11-05 Thread luxInteg
Greetings, I have a little learning progect using cmake with gfortran. SOURCE files: .f, .f xxx.f and .f .y I want to do the following:- a) create a shared library libFFF.so and a static one libFFF.a (from say xxx.f and yyy.f) b) find installed fortran librar

Re: [CMake] gfortran/CheckFortranFunctionExists.cmake issue with 2.6.0

2008-06-19 Thread Arjen Markus
> > Regardless of the cause of this problem, with both g77 and gfortran I get > the proper results (success if the function exists, failure if not) if I > change > > external ${FUNCTION} > > ==> > > call ${FUNCTION}() > > within CheckFortranFunctionExists.cmake. > > Alin and Brad (and any other For

[CMake] gfortran/CheckFortranFunctionExists.cmake issue with 2.6.0

2008-06-19 Thread Alan W. Irwin
CheckFortranFunctionExists.cmake (originally implemented by me and now maintained by Alin Elena in CMake cvs) does not work properly with gfortran. The issue is the bit of test code that reads as follows: FILE(WRITE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testFortranCompiler

Re: [CMake] gfortran

2008-01-25 Thread Alberto Luaces
El Thursday 24 January 2008 10:16:24 Javier Gonzalez escribió: > Now, I don't compile any fortran code as part of my project but link to > a library that was compiled using gfortran. Apparently, to link I then > need to add the gfortran library which is the one I'm having trouble with. On a side n

Re: [CMake] gfortran

2008-01-24 Thread Arjen Markus
>> > That worked. The compile lines were: > /usr/bin/f95 -o CMakeFiles/hello.dir/hello.o -c > /home/jgonzalez/cmake-test/hello.f90 > /usr/bin/f95 -fPIC "CMakeFiles/hello.dir/hello.o" -o hello -rdynamic > > Now, I don't compile any fortran code as part of my project but link to > a library

Re: [CMake] gfortran

2008-01-24 Thread Javier Gonzalez
Bill Hoffman wrote: Javier Gonzalez wrote: I did it and it works (I removed the link just in case): bash-3.2$ ls hello.f90 bash-3.2$ cat hello.f90 PROGRAM HelloWorld WRITE(*,*) "Hello World!" END PROGRAM bash-3.2$ gfortran -o hello hello.f90 bash-3.2$ ./hello Hello World! bash-3.2$ OK

Re: [CMake] gfortran

2008-01-23 Thread Bill Hoffman
Javier Gonzalez wrote: I did it and it works (I removed the link just in case): bash-3.2$ ls hello.f90 bash-3.2$ cat hello.f90 PROGRAM HelloWorld WRITE(*,*) "Hello World!" END PROGRAM bash-3.2$ gfortran -o hello hello.f90 bash-3.2$ ./hello Hello World! bash-3.2$ OK, next step same prog

Re: [CMake] gfortran

2008-01-23 Thread Javier Gonzalez
Bill Hoffman wrote: Javier Gonzalez wrote: Try to compile a simple hello world program using gfortran at command line to test if it's cmakes fault of if your gcc installation is broken. To do so copy this code http://www.roesler-ac.de/wolfram/hello.htm#Fortran90 and paste it into a fi

Re: [CMake] gfortran

2008-01-23 Thread Bill Hoffman
Javier Gonzalez wrote: Try to compile a simple hello world program using gfortran at command line to test if it's cmakes fault of if your gcc installation is broken. To do so copy this code http://www.roesler-ac.de/wolfram/hello.htm#Fortran90 and paste it into a file i.e. hello.f90. Co

Re: [CMake] gfortran

2008-01-23 Thread Javier Gonzalez
Maik Beckmann wrote: > Am Mittwoch 23 Januar 2008 15:35:17 schrieb Javier Gonzalez: > >> Hi, >> >> I have a quick question. In my project I need to link against a library >> that was compiled with gfortran. When I try finding the library it fails >> because libgfortran.so doesn't exist, the one

Re: [CMake] gfortran

2008-01-23 Thread Maik Beckmann
Am Mittwoch 23 Januar 2008 15:35:17 schrieb Javier Gonzalez: > Hi, > > I have a quick question. In my project I need to link against a library > that was compiled with gfortran. When I try finding the library it fails > because libgfortran.so doesn't exist, the one that is there is > libgfortran.so

[CMake] gfortran

2008-01-23 Thread Javier Gonzalez
Hi, I have a quick question. In my project I need to link against a library that was compiled with gfortran. When I try finding the library it fails because libgfortran.so doesn't exist, the one that is there is libgfortran.so.1. I'm not aware of another package that should install libgfortran.so