Re: [CMake] Compiling Fortran on IBMs XL

2017-06-08 Thread Bill Hoffman
On 6/8/2017 5:13 AM, Matthias Redies wrote: I believe my Error was discussed in: http://public.kitware.com/pipermail/cmake/2015-January/059522.html and solved here: http://public.kitware.com/pipermail/cmake/2015-January/059547.html

Re: [CMake] Compiling Fortran on IBMs XL

2017-06-08 Thread Matthias Redies
I found that by setting: set(CMAKE_EXE_LINKER_FLAGS "-qmkshrobj") I can include this fix for older verison. set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-qmkshrobj") Didn't actually have any effect on the linker flags. Kind regards Matthias Redies On 07.06.2017 17:02, Matthias

[CMake] Compiling Fortran on IBMs XL

2017-06-07 Thread Matthias Redies
Hello, I am trying to compile my program using this CMake script: https://pastebin.com/zgJhbFhj with ifort or gfortran my script works fine, but with IBMs XL Fortran I get an error: > make -- A library with BLAS API found. -- A library with LAPACK API found. -- MKLROOT: -- IBM -- DEBUG Flag

Re: [CMake] Compiling Fortran Modules And

2013-05-15 Thread Yngve Inntjore Levinsen
Den 13. mai 2013 20:08, skrev Pritchett-Sheats, Lori: Each dir* has *.F files that must be preprocessed to *.f90 files and then compiled. Hi, Just to give my two cents here. The standard filenaming scheme for fortran files are unless otherwise specified in the compile/preprocessing flags (as

Re: [CMake] Compiling Fortran Modules And

2013-05-15 Thread Pritchett-Sheats, Lori
, 2013 3:13 PM To: Pritchett-Sheats, Lori Cc: cmake@cmake.org Subject: Re: [CMake] Compiling Fortran Modules And On 05/13/2013 02:08 PM, Pritchett-Sheats, Lori wrote: IMPLICIT_DEPENDS Fortran ${F_file} The custom command is running a C preprocessor, not a Fortran compiler, so use

Re: [CMake] Compiling Fortran Modules And

2013-05-15 Thread Pritchett-Sheats, Lori
: [CMake] Compiling Fortran Modules And Den 13. mai 2013 20:08, skrev Pritchett-Sheats, Lori: Each dir* has *.F files that must be preprocessed to *.f90 files and then compiled. Hi, Just to give my two cents here. The standard filenaming scheme for fortran files are unless otherwise specified

Re: [CMake] Compiling Fortran Modules And

2013-05-14 Thread Andreas Mohr
Hi, On Mon, May 13, 2013 at 09:31:46PM -0400, cmake-requ...@cmake.org wrote: I'm converting a Fortran package that was using GNU make to build to CMake, but I've run into a problem compiling F90 module code where the source code is stored under many directories. The package has a

Re: [CMake] Compiling Fortran Modules And

2013-05-14 Thread Pritchett-Sheats, Lori
Lori A. Pritchett-Sheats Los Alamos National Laboratory CCS-2, Computational Physics 505-665-6675 From: Andreas Mohr [a...@lisas.de] Sent: Tuesday, May 14, 2013 1:14 AM To: cmake@cmake.org Cc: Pritchett-Sheats, Lori Subject: Re: Compiling Fortran Modules

Re: [CMake] Compiling Fortran Modules And

2013-05-14 Thread Andreas Mohr
Hi, [disclaimer: quoting below is non-standard] On Tue, May 14, 2013 at 10:48:22AM -0400, cmake-requ...@cmake.org wrote: Date: Tue, 14 May 2013 14:36:18 + From: Pritchett-Sheats, Lori lpri...@lanl.gov | Hmm. Files with directory specification. | | But then...

Re: [CMake] Compiling Fortran Modules And

2013-05-14 Thread Brad King
On 05/13/2013 02:08 PM, Pritchett-Sheats, Lori wrote: IMPLICIT_DEPENDS Fortran ${F_file} The custom command is running a C preprocessor, not a Fortran compiler, so use IMPLICIT_DEPENDS C. list(APPEND PGSLibIface_SOURCE_FILES ${new_file_f90}) Do you mean to append to

[CMake] Compiling Fortran Modules And

2013-05-13 Thread Pritchett-Sheats, Lori
I'm converting a Fortran package that was using GNU make to build to CMake, but I've run into a problem compiling F90 module code where the source code is stored under many directories. The package has a directory structure src/ src/dir1 src/dir2 : : Each dir* has *.F

Re: [CMake] Compiling fortran

2007-09-27 Thread Arjen Markus
Juan Sanchez wrote: Anyone know what are the valid comment lines in all the Fortran variants? I know of lines beginning with c, C, or * in the first column. Those are valid only in the fixed-form type of source code. The exclamation mark (!) is valid in both free-form and fixed-form code

Re: [CMake] Compiling fortran

2007-09-26 Thread Alan W. Irwin
On 2007-09-25 22:37-0500 John Doe wrote: While the cmake man page does not document the proper capitalization of Fortran for creating a fortran based project, I am now at the point the compilation does not work for another reason. Does anyone have an idea what this means? Clearing

Re: [CMake] Compiling fortran

2007-09-26 Thread Alin M Elena
On Wednesday 26 September 2007 04:37:33 [EMAIL PROTECTED] wrote: While the cmake man page does not document the proper capitalization of Fortran for creating a fortran based project, I am now at the point the compilation does not work for another reason. Does anyone have an idea what this

Re: [CMake] Compiling fortran

2007-09-26 Thread Juan Sanchez
It turns out that any word of the word Use or use as a word anywhere in a comment causes the dependency scanner to use the next token on the line as a module dependency. So I changed all the code to use xUse and xuse. Thanks, Juan Alin M Elena wrote: On Wednesday 26 September 2007 04:37:33

Re: [CMake] Compiling fortran

2007-09-26 Thread Juan Sanchez
Hi Bill, I wouldn't mind taking a stab at it. It would be easy enough to tell lex to drop any line starting with a comment character. Something along the lines of: ^[cC].* {} There seems to be a line in the lexer that does this, but it doesn't appear that that the start condition, fixed_fmt,

Re: [CMake] Compiling fortran

2007-09-26 Thread Bill Hoffman
Juan Sanchez wrote: It turns out that any word of the word Use or use as a word anywhere in a comment causes the dependency scanner to use the next token on the line as a module dependency. So I changed all the code to use xUse and xuse. The problem is well known, and much talked about. The

Re: [CMake] Compiling fortran

2007-09-26 Thread Bill Hoffman
Juan Sanchez wrote: Hi Bill, I wouldn't mind taking a stab at it. It would be easy enough to tell lex to drop any line starting with a comment character. Something along the lines of: ^[cC].* {} There seems to be a line in the lexer that does this, but it doesn't appear that that the start

Re: [CMake] Compiling fortran

2007-09-26 Thread Juan Sanchez
Anyone know what are the valid comment lines in all the Fortran variants? I know of lines beginning with c, C, or * in the first column. Juan Bill Hoffman wrote: Juan Sanchez wrote: Hi Bill, I wouldn't mind taking a stab at it. It would be easy enough to tell lex to drop any line starting

Re: [CMake] Compiling fortran

2007-09-26 Thread Maik Beckmann
Am Mittwoch, 26. September 2007 17:34:38 schrieb Bill Hoffman: A lex/yacc guru would be best to help out here. Basically we want the fortran parser to ignore all comment lines. I gave it a try a while ago, but did not get it to work. I suppose a hack solution would be to pre-process the

Re: [CMake] Compiling fortran

2007-09-26 Thread Bill Hoffman
Maik Beckmann wrote: Am Mittwoch, 26. September 2007 17:34:38 schrieb Bill Hoffman: A lex/yacc guru would be best to help out here. Basically we want the fortran parser to ignore all comment lines. I gave it a try a while ago, but did not get it to work. I suppose a hack solution would

[CMake] Compiling fortran

2007-09-25 Thread John Doe
While the cmake man page does not document the proper capitalization of Fortran for creating a fortran based project, I am now at the point the compilation does not work for another reason. Does anyone have an idea what this means? Clearing dependencies in CMakeFiles/pisces.dir/depend.make.