On 2007-08-27 14:45+0200 Michael M. Tung wrote: > Dear Alan: > > Many thanks for your detailed reply. I have upgraded > to the latest cmake distribution and now face the > following problem with the FORTRAN configuration: > cmake doesn't seem to realize that f77 and f95 are > two different programs---f77 the standard GNU exec > and f95 the NAGWARE extension. Therefore, cmake tells > me that f77 is not F95 compatible and disables this > binding.
Hi Michael: I am answering you on list because I think others may be interested in the reply. We have both a legacy f77 binding and a more modern f95 binding. But our build system assumes just one fortran compiler specified by the user. Our build system tests that designated compiler against some simple f95 source, and if it cannot handle it, then it disables the f95 binding which is what happened to you for your default g77 compiler. (As an aside, we don't test whether the designated compiler can handle our f77 binding since our experience is all fortran compilers can handle it.) Reading between the lines, I think you want full control over your fortran compiler rather than the default g77 one picked by cmake. To give you that control, use the FC environment variable (where you can specify the fortran command and associated options) before cmake is invoked in an empty directory for the first time (assuming you are doing an out-of-source build). e.g., export FC='f95 -O2' cmake -D options <path to PLplot source> make make install This is documented at http://www.miscdebris.net/plplot_wiki (look for "1.2.1.2 (Optional) set environment variables to specify the compilers and compiler flags"), but I can see why you missed it since there is a lot of information to absorb from our wiki when encountering cmake for the first time. If you run into any trouble with the above scenario for deciding your fortran compiler, please post to the list the actual export and cmake commands you used and the complete output from the cmake command (which will help us to diagnose the problem). Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel