Re: [CMake] Testing with multiple Fortran compilers

2018-04-13 Thread Arjen Markus
programs. (As for get_file_component: In the PLplot project the PATH part of the full path to the compiler is used to fine-tune the directories where the compiler libraries are to be found.) Regards, Arjen Arjen Markus Sr. Adviseur/Onderzoeker T +31(0)88 335 8559 E arjen.mar

Re: [CMake] MinGW-w64/MSYS2 (or Cygwin) and NAG Fortran - how to combine?

2018-02-14 Thread Arjen Markus
Hi Brad, Alan, See below. > -Original Message- > From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca] > Sent: Tuesday, February 13, 2018 11:55 PM > > In general, you get native packages from the mingw64 repository and > POSIX-aware > packages from the msys2 repository for this dual-n

Re: [CMake] MinGW-w64/MSYS2 (or Cygwin) and NAG Fortran - how to combine?

2018-02-09 Thread Arjen Markus
Hi Alan, The result is the same or very much the same. Regards, Arjen From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Arjen Markus Sent: Friday, February 09, 2018 11:30 AM To: Alan W. Irwin Cc: cmake@cmake.org Subject: Re: [CMake] MinGW-w64/MSYS2 (or Cygwin) and NAG Fortran

Re: [CMake] MinGW-w64/MSYS2 (or Cygwin) and NAG Fortran - how to combine?

2018-02-09 Thread Arjen Markus
Hi Alan, > -Original Message- > From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca] > Sent: Friday, February 09, 2018 11:27 AM > To: Arjen Markus > > Is the issue that you used the "Unix Makefiles" generator rather than the > "MSYS > Makefiles&

Re: [CMake] MinGW-w64/MSYS2 (or Cygwin) and NAG Fortran - how to combine?

2018-02-08 Thread Arjen Markus
Hi Alan, > -Original Message- > From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca] > Sent: Thursday, February 08, 2018 10:59 PM > To: Arjen Markus > Cc: cmake@cmake.org > Subject: Re: [CMake] MinGW-w64/MSYS2 (or Cygwin) and NAG Fortran - how to > combine? > &g

[CMake] MinGW-w64/MSYS2 (or Cygwin) and NAG Fortran - how to combine?

2018-02-08 Thread Arjen Markus
Hello, In the PLplot project we are looking for a way to combine the MinGW-w64/MSYS2 platform (or Cygwin) with the NAG Fortran compiler. The reason for this is that both MinGW-w64/MSYS2 and Cygwin come with a nice repository of libraries, some of which we can use in the context of PLplot. The

[CMake] Patch for working with the NAG Fortran compiler

2016-06-06 Thread Arjen Markus
SHARED_LIBRARY " -Wl,-o, ") Nothing fanciful, but it definitely helps to get DLLs built with NAG Fortran and the accompanying C compiler. Kind regards, Arjen Markus DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged

Re: [CMake] Cmake 3.5.0 and Fortran submodule cannot be built

2016-03-23 Thread Arjen Markus
Hi, Fortran submodules are contained in a file with the extension .smod instead of .mod. At least for Intel Fortran. It may very well be that this feature is not yet supported by CMake. Unfortunately I have not yet had the opportunity to run into this problem ;). Regards, Arjen > ---

Re: [CMake] FORTRAN name mangling

2016-01-12 Thread Arjen Markus
> Exactly, that is the whole point of the standardized `ISO_C_BINDING` module > and C interop being added to the Fortran 2003 standard. No more ugly guess > work, hackery, etc. > AFAIK, there is pretty good support for this among compiler vendors, so long > as you have a recent release. > Even

Re: [CMake] Problem with Fortran conditionals

2015-05-01 Thread Arjen Markus
Hi Nikolaus, I think the parser for Fortran sources indeed does not take care of such conditionals (they are also compiler-dependent, COCO never really got off the ground). A workaround might be to define a dummy module by that name. As for the selection of the Fortran compiler, you might che

Re: [CMake] Unexpected use of "ld" on Windows

2015-02-11 Thread Arjen Markus
: Wednesday, February 11, 2015 4:30 PM To: Arjen Markus Cc: cmake@cmake.org Subject: Re: [CMake] Unexpected use of "ld" on Windows Hi, On Wed, Feb 11, 2015 at 3:16 PM, Arjen Markus mailto:arjen.mar...@deltares.nl>> wrote: Hello, I am trying to build the Fortran interface to NetCDF4 o

[CMake] Unexpected use of "ld" on Windows

2015-02-11 Thread Arjen Markus
Hello, I am trying to build the Fortran interface to NetCDF4 on Windows, using the Intel Fortran compiler and "Nmake Makefiles" as the generator (see http://www.unidata.ucar.edu/downloads/netcdf/index.jsp). I had some trouble getting the first part to build, but that is solved (small issues wi

Re: [CMake] cmake + vc12

2015-01-13 Thread Arjen Markus
Hello lode, You can use: nmake verbose=1 to have the commands printed. Regards, Arjen > -Original Message- > From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Lode Leroy > Sent: Tuesday, January 13, 2015 2:02 PM > To: cmake@cmake.org > Subject: [CMake] cmake + vc12

Re: [CMake] Mixed Fortran and C sources with Visual Studio 10

2013-10-21 Thread Arjen Markus
Hi Brian, as I understand it, it is an explicit limitation of Visual Studio that a VS project can only contain a single programming language. The solution to this would to split the sources into separate lists and build libraries from them. An alternative might be to use the Nmake approach - th

Re: [CMake] Fortran MinGW on Windows

2013-05-31 Thread Arjen Markus
On Fri, 31 May 2013 09:47:47 + "Leek, Jim" wrote: Oh, if there any cmake way to get the fortran link flags I need to pass to g++? I know -lgfortran is all I need in this case, but if there was a generic way to get cmake to figure it out for me, that would be nice. I am not aware of an

Re: [CMake] Fortran MinGW on Windows

2013-05-31 Thread Arjen Markus
Hi Jim, I do not quite know why this works fine on Linux, but the issue is caused by the C++ part of the link step. As you are using g++ to link all the C++ runtime libraries, you need to tell it what Fortran runtime libraries to add. Linking with gfortran automatically ensures all these librarie

[CMake] Problem with "configured" file under Cygwin/Windows 7

2013-05-25 Thread Arjen Markus
Hello, I have installed a very recent version of Cygwin on Windows 7 (64 bits) and the version of CMake that comes with it (2.8.9-2). When I use this however to configure and build projects that work fine under Windows (various versions0, then I get either configuration problems or build prob

Re: [CMake] MSYS and Intel Fortran/MSVC/C++

2013-01-06 Thread Arjen Markus
On Fri, 04 Jan 2013 09:09:58 -0500 Bill Hoffman wrote: I suspect you might be right. I am thinking this is MSYS messing with the command line somehow. Can you build with nmake and a DOS shell? If so, can you then go into that tree with the msys shell and try to build? Victory! Withi

Re: [CMake] MSYS and Intel Fortran/MSVC/C++

2013-01-06 Thread Arjen Markus
On Fri, 04 Jan 2013 09:09:58 -0500 Bill Hoffman wrote: I suspect you might be right. I am thinking this is MSYS messing with the command line somehow. Can you build with nmake and a DOS shell? If so, can you then go into that tree with the msys shell and try to build? When I use CMak

Re: [CMake] What is the proper cross-platform way to link the Python library?

2013-01-06 Thread Arjen Markus
On Sun, 06 Jan 2013 11:08:37 +0100 Rolf Eike Beer wrote: This will work as long as PYTHON_LIBRARIES contains only one element. The debug/optimized keywords apply only to the immediately following library, so if you have a list of libraries returned (currently unlikely AFAIK) it may still

Re: [CMake] MSYS and Intel Fortran/MSVC/C++

2013-01-04 Thread Arjen Markus
Hi Bill, I will try that later and I will let you know the results. Regards, Arjen On Fri, 04 Jan 2013 09:09:58 -0500 Bill Hoffman wrote: On 1/4/2013 3:31 AM, Arjen Markus wrote: Hi Bill, Alan, just to make sure, I checked that there is an e-drive and a directory temp on that drive

Re: [CMake] MSYS and Intel Fortran/MSVC/C++

2013-01-04 Thread Arjen Markus
he default MSYS shell. Regards, Arjen On Fri, 04 Jan 2013 09:31:37 +0100 "Arjen Markus" wrote: Hi Bill, Alan, just to make sure, I checked that there is an e-drive and a directory temp on that drive. These settings are the same as always when I use the MSVC/C++ or Intel Fortran

Re: [CMake] MSYS and Intel Fortran/MSVC/C++

2013-01-04 Thread Arjen Markus
Hi Bill, Alan, just to make sure, I checked that there is an e-drive and a directory temp on that drive. These settings are the same as always when I use the MSVC/C++ or Intel Fortran compilers. My guess is that the use of the forward slash is messing up the argument parsing: - cl uses both "

Re: [CMake] MSYS and Intel Fortran/MSVC/C++

2013-01-03 Thread Arjen Markus
Hello, here is some further information: Alan Irwin drew my attention to the generator I was using, so instead of "MSYS Makefiles" I tried it with "NMake Makefiles". I did not need to specify the compiler, that was correctly recognised, but nonetheless the configuration step failed, see the attac

Re: [CMake] MSYS and Intel Fortran/MSVC/C++

2013-01-02 Thread Arjen Markus
Hello, I have used the example project (from the CMake tutorial) to illustrate the problem. See the attached files. The command was: cmake -G "MSYS Makefiles" ../src -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -D DCMAKE_AR=cl Regards, Arjen DISCLAIMER: This message is intended exclus

Re: [CMake] MSYS and Intel Fortran/MSVC/C++

2012-12-29 Thread Arjen Markus
Hello, I forgot to mention that the version of CMake I use is 2.8.10.2 Regards, Arjen On Fri, 28 Dec 2012 13:32:59 +0100 Arjen Markus wrote: Hello, I am trying to use the MinGW/MSYS environment on Windows (XP) together with the MS Visual C/C++ and Intel Fortran compiler. I need the

[CMake] MSYS and Intel Fortran/MSVC/C++

2012-12-28 Thread Arjen Markus
Hello, I am trying to use the MinGW/MSYS environment on Windows (XP) together with the MS Visual C/C++ and Intel Fortran compiler. I need the MSYS environment because after building the programs there is a whole bunch of tests that have to be run and the MinGW/MSYS environment offers the tools fo

Re: [CMake] #include and fortran dependencies

2012-03-05 Thread Arjen Markus
Hello, for whatever it is worth, C-style preprocessor commands are a non-standard feature. The Fortran standard itself defines only the "INCLUDE" statement (or directive). Perhaps you can solve this in a standard way by moving the logic to the CMakeLists.txt files rather than relying on (possibly

Re: [CMake] C/CXX/Fortran Compiler not found.

2012-01-12 Thread Arjen Markus
solution on internet which suggested to install VB and Intel Fortran. I tried and now cmake is detecting the C, CXX and Fortran compiler. Thanks for the suggestion anyway. regards, Kedar On Wed, Jan 11, 2012 at 1:24 PM, Arjen Markus <mailto:arjen.mar...@deltares.nl>> wrote:

Re: [CMake] C/CXX/Fortran Compiler not found.

2012-01-11 Thread Arjen Markus
Hi Kedar, if CMake can find the Fortran compiler and the command "gcc" works from that same environment/DOS-box, then I see no particular reason why CMake should not be able to find it. Are the messages still the same (except for the Fortran part)? Note that you should start in a completely clea

Re: [CMake] C/CXX/Fortran Compiler not found.

2012-01-11 Thread Arjen Markus
Hello Kedar, can you start the compiler from a command prompt (DOS-box)? That is: does the command "gcc" work? If not, then you will have to add the location of the compiler to your path: path=c:\MinGW\bin;%PATH% This, however, should have been taken care of by the installation procedure. C

Re: [CMake] cmake support D programming?

2011-11-24 Thread Arjen Markus
Hello Gour, we support D in the PLplot project - http://plplot.sf.net You can have a look there to see how that is done. Regards, Arjen On 2011-11-24 12:45, Gour wrote: On Sun, 07 Aug 2011 11:32:53 +0200 jonathan MERCIER wrote: So, i would to know if cmaked2 will go to cmake ? I'm also c

[CMake] Problem with dowloading CMake 2.8.6 (now gone btw)

2011-11-07 Thread Arjen Markus
Hello, this weekend I had trouble downloading CMake. Not sure if it the problem was on my side or if it was at www.cmake.org, but each time I tried to download the setup for 2.8.6 (or indeed the source code) I ended up on the page "public.kitware.com". The problem has gone now and I have downloa

Re: [CMake] help with cmake fortran envar

2010-11-17 Thread Arjen Markus
Hello luxInteg, you are trying to set the Fortran compiler to gfortran then? Why? Why not leave it to CMake to come up with whatever compiler is suitable? That is part of the strength of tools like CMake. Regards, Arjen On 2010-11-16 20:44, luxInteg wrote: Greetings, I am learning cmake. I

Re: [CMake] linker associated to ifort fortran compiler

2010-09-29 Thread Arjen Markus
Hello Eric, On 2010-09-29 17:51, pellegrini wrote: Hello everybody, I would like to compile my project using intel fortran compiler on my windows machine. When running the following commands: cmake -DCMAKE_Fortran_Compiler=ifort -G"NMake Makefiles" nmake VERBOSE=1 I can see that nmake use

Re: [CMake] Problem with Intel Fortran and the Visual Studio 2008 generator

2010-09-28 Thread Arjen Markus
Hi Brad, I am glad it was something this simple (even though with far-reaching consequences)! It is not something I could have found out myself. Regards, Arjen On 2010-09-28 16:18, Brad King wrote: On 9/28/2010 6:35 AM, Arjen Markus wrote: for the PLplot project (http://plplot.sf.net) I

[CMake] Problem with Intel Fortran and the Visual Studio 2008 generator

2010-09-28 Thread Arjen Markus
Hello, for the PLplot project (http://plplot.sf.net) I have tried to use the Visual Studio 2008 generator in combination with Intel Fortran (version 11.1). Generating the solution and the project files works fine, but when I try to build it all, I get error messages about various symbols being

Re: [CMake] What triggers CMake to scan (C) files for dependencies?

2010-09-23 Thread Arjen Markus
Hello, I think I found the answer: it is only when actually building the program that the source files get scanned and therefore the depend.make file gets filled. That, of course, does make sense. Regards, Arjen On 2010-09-23 10:18, Arjen Markus wrote: Hello, I am trying to create CMake

[CMake] What triggers CMake to scan (C) files for dependencies?

2010-09-23 Thread Arjen Markus
Hello, I am trying to create CMake-based build system for a program that uses both C and Fortran source files. While expanding the CMakeLists.txt files to include a custom build step for one C header file, I stumbled on something I do not understand. The makefiles generated from my first version

[CMake] Problem with GNU compilers - difference between "Windows" and "MinGW"

2010-09-20 Thread Arjen Markus
Hello, Alan Irwin and me ran into a rather peculiar problem concerning the use of the GNU compiler suite on Windows. Here is the set-up: - Alan's free_eos project uses the LAPACK and BLAS libraries. - I tested his build system under Windows and to do that I first built BLAS and LAPACK from sour

Re: [CMake] Complete beginner question about tutorial

2010-09-07 Thread Arjen Markus
Hi David, I would say put the CMakeLists.txt files under version control. This is what we do within the PLplot project and that is what I generally see: generated files are not managed, as you can always generate them again. (For convenience you can put them in version control, for instance, to

Re: [CMake] Complete beginner question about tutorial

2010-09-07 Thread Arjen Markus
Hi David, that depends on the generator you specify: CMake "simply" creates makefiles or project files that you can then use to build the program or programs. In the case of "Visual C++ 2008", you need Visual Studio 2008 to load the project (solution) and build it. Regards, Arjen On 2010-09-07

Re: [CMake] CMAKE_SOURCE_DIR overwritten by CMake Fortran language support

2010-03-28 Thread Arjen Markus
s, Arjen On 2010-03-26 22:20, Alan W. Irwin wrote: On 2010-03-26 16:44-0400 Brad King wrote: Bill Hoffman wrote: Alan W. Irwin wrote: It has been reported (by Arjen Markus) that the MinGW issue is because something in that case overwrites CMAKE_SOURCE_DIR There is only one line in the entir

Re: [CMake] building plplot

2010-03-19 Thread Arjen Markus
Could not find cmake module file:C:/plplot-5.9.5/CMakeFiles/CMakeCCompiler.cmake CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred! ________ Any suggestions? Thanks, Vince 2010/3/18 Arjen Mar

Re: [CMake] building plplot

2010-03-18 Thread Arjen Markus
Hi Vincenzo, it looks like CMake regards your gcc compiler as being similar to the MS Visual C/C++ compiler, as the options it gets are typical for that compiler. Could you check that gcc is the first compiler in the path? ... Oh! Can you try running CMake with the option -G "MinGW Makefiles",

Re: [CMake] CMake 2.8.1 RC 3 is ready to try

2010-02-22 Thread Arjen Markus
On Mon, 22 Feb 2010 14:28:05 -0500 Brad King wrote: On 2/22/2010 1:12 PM, Alan W. Irwin wrote: I don't have access to Cygwin myself, but as a convenience for more Cygwin testing by you and Arjen, I put together a simple test project that detects Fortran identically to how it is done in PLplo

Re: [CMake] CMake 2.8.1 RC 3 is ready to try

2010-02-22 Thread Arjen Markus
On Mon, 22 Feb 2010 10:12:12 -0800 (PST) "Alan W. Irwin" wrote: On 2010-02-22 08:35-0500 Brad King wrote: I cannot reproduce this. I have a simple project: # CMakeLists.txt cmake_minimum_required(VERSION 2.6) project(Foo Fortran) I don't have access to Cygwin myself, but as a convenie

Re: [CMake] CMake 2.8.1 RC 3 is ready to try

2010-02-22 Thread Arjen Markus
, Brad King wrote: Arjen Markus wrote: On Thu, 18 Feb 2010 16:21:33 -0800 (PST) "Alan W. Irwin" wrote: I have a lot more CMake-2.8.1-RC3 testing to do myself ... I have come across a nasty little error: Under Cygwin it turns out that CMake 2.8.1rc3 is not recognising gfortran, but i

Re: [CMake] CMake 2.8.1 RC 3 is ready to try

2010-02-21 Thread Arjen Markus
On Thu, 18 Feb 2010 16:21:33 -0800 (PST) "Alan W. Irwin" wrote: I have a lot more CMake-2.8.1-RC3 testing to do myself ... I have come across a nasty little error: Under Cygwin it turns out that CMake 2.8.1rc3 is not recognising gfortran, but instead g77. The output from the test is ambigu

Re: [CMake] Compaq Visual Fortran

2010-02-17 Thread Arjen Markus
Hi Brad, adding set(CMAKE_INCLUDE_FLAG_C "-I ") (and, just to be sure, its C++ cousin) did the trick all right. I can now build PLplot's Fortran bindings and examples using the Compaq Visual Fortran compiler. The only thing that worries me is that this may have an impact on the C compiler too, a

Re: [CMake] Compaq Visual Fortran

2010-02-16 Thread Arjen Markus
King wrote: Arjen Markus wrote: f90.exe /compile_only -IF:\plplot-svn\plplot\bindings\f77\strutils.f Compaq Visual Fortran has an option /include or /I or -I but also an option /iface:keyword or -IF:keyword. In this particular constellation it is interpreting the options in the wrong m

Re: [CMake] Compaq Visual Fortran

2010-02-15 Thread Arjen Markus
Hi Brad, I created a new issue in the CMake tracker regarding the refactoring of the file Windows-Compaq-Fortran.cmake, as you wil have seen. I tried some further tests today and was rather astonished to see it all fail ... with a message from the Compaq compiler that it was passed a keyword to

Re: [CMake] How to find the DLL's a a required package searched with FIND_PACKAGE()?

2010-02-11 Thread Arjen Markus
On 2010-02-11 09:13, Michael Wild wrote: You might want to take a look at setlocal/endlocal: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/batch.mspx?mfr=true Oh, I had completely forgotten that those commands exist too. That might be the solution, actually!

Re: [CMake] How to find the DLL's a a required package searched with FIND_PACKAGE()?

2010-02-11 Thread Arjen Markus
On 2010-02-11 01:20, David Cole wrote: On Wed, Feb 10, 2010 at 7:16 PM, Alan W. Irwin Would setting that environment variable from cmake affect subsequent Windows builds? I don't have any Windows development experience, but this question just came up on the PLplot list.

Re: [CMake] Compaq Visual Fortran

2010-02-02 Thread Arjen Markus
Hi Brad, On 2010-02-02 13:38, Brad King wrote: Arjen Markus wrote: Hi Brad, I just tested the patch - Compaq Visual Fortran is recognised, but not accepted - and added the Windows-f90.cmake file from the PLplot project to CMake's Modules\Platform directory. Now the compiler is accept

Re: [CMake] Compaq Visual Fortran

2010-02-02 Thread Arjen Markus
n the repository, but I guess "df.exe" is not used as the name for a possible compiler. Regards, Arjen On 2010-02-01 15:26, Brad King wrote: Arjen Markus wrote: On 2010-01-28 17:18, Brad King wrote: Thanks. Undo the previous patch and try the one below instead. I applied the p

Re: [CMake] Compaq Visual Fortran

2010-02-01 Thread Arjen Markus
Hi Brad, great, I should have time tomorrow to report back. Regards, Arjen On 2010-02-01 15:26, Brad King wrote: Arjen Markus wrote: On 2010-01-28 17:18, Brad King wrote: Thanks. Undo the previous patch and try the one below instead. I applied the patch and it all worked fine. That is

Re: [CMake] Compaq Visual Fortran

2010-02-01 Thread Arjen Markus
Hi Brad, On 2010-01-28 17:18, Brad King wrote: Thanks. Undo the previous patch and try the one below instead. I applied the patch and it all worked fine. That is, CMake now recognises the compiler but does not test it with the correct compile flags (-o being reported as ambiguous). I can

Re: [CMake] Compaq Visual Fortran

2010-01-28 Thread Arjen Markus
Hi Brad, I will try the new patch tomorrow. I tried printing it as an ordinary variable or constant, but that did not work: variable names are not allowed to start with an underscore. Regards, Arjen On 2010-01-28 17:18, Brad King wrote: Arjen Markus wrote: Perhaps this means that

Re: [CMake] Compaq Visual Fortran

2010-01-28 Thread Arjen Markus
Hi Brad, Perhaps this means that _DF_VERSION_ is available only as a Fortran language symbol. It would look that way, but what use would it have then? So we conclude that the compiler provides no way to identify itself using the preprocessor. This will need non-trivial work in CMake to re

Re: [CMake] Compaq Visual Fortran

2010-01-28 Thread Arjen Markus
, indeed _DF_VERSION_ and _VF_VERSION_. I tried to set the flag -fpp to /fpp /D_DF_VERSION_=660 to force the definition, but the compipler sees these flags as a single flag and stops. Regards, Arjen On 2010-01-28 14:53, Brad King wrote: Arjen Markus wrote: it does not work - I get a message that the

Re: [CMake] Compaq Visual Fortran

2010-01-28 Thread Arjen Markus
Hi Brad, it does not work - I get a message that the Fortran compiler identification is unknown. Does CMake run the compiler with the /fpp option? If not, then that is the cause (without there is no particular macro defined) Regards, Arjen On 2010-01-28 14:27, Brad King wrote: Arjen Markus

Re: [CMake] Compaq Visual Fortran

2010-01-28 Thread Arjen Markus
Hi Brad, see my answers below On 2010-01-27 19:18, Brad King wrote: Brad King wrote: As a first step, we can add Compaq to CMakeFortranCompilerId.F.in. What is the preprocessor macro that identifies it? I'd like to teach CMake upstream to recognize the Compaq Fortran compiler even if we do n

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-27 Thread Arjen Markus
Hi Brad, Arjen, please try out each compiler of interest with CMake 2.8.0 and with CMake from CVS HEAD. Remove all plplot language module files to see how much works out of the box. I tested the gfortran compiler under MinGW (directly, not via MSYS) having removed the gfortran-specific platf

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-26 Thread Arjen Markus
Hi Brad, that was better. Installed gfortran now under MinGW (from TDM) and removed the Fortran-specific files from PLplot, so that it should recognise gfortran out-of-the-box. This does not work, but it is a gfortran/gcc problem. I will need to look into that. Regards, Arjen On 2010-01-26

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-26 Thread Arjen Markus
Hi Brad, ah, had to work from memory - normally I rely on my hard disk's memory :). Will try again. Regards, Arjen On 2010-01-26 15:36, Brad King wrote: Arjen Markus wrote: this did not work! I checked out PLplot a-fresh, checked that there are NO CMakeCache.txt files anywhere in the s

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-26 Thread Arjen Markus
source tree, CMakeCache.txt in there too etc. I tried it twice to make sure I made no mistake. I installed CMake 2.8 today on this laptop, to make sure I had an up-to-date version. Any ideas what on earth is causing this? Regards, Arjen On 2010-01-26 15:02, Brad King wrote: Arjen Markus wrote

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-26 Thread Arjen Markus
Hi Brad, On 2010-01-26 14:37, Brad King wrote: Arjen Markus wrote: I tried to do this, using the Compaq Visual Fortran compiler as a test case, as I can do that rightaway, but I ran into some trouble: Okay, I didn't expect this one to work yet. The MinGW and Cygwin versions of gfo

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-26 Thread Arjen Markus
Hi Brad, I tried to do this, using the Compaq Visual Fortran compiler as a test case, as I can do that rightaway, but I ran into some trouble: - I removed the files referring to that compiler from my version of the PLplot repository - CMake complained at first about f90 - the -o option is ambig

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-26 Thread Arjen Markus
Hi Brad, On 2010-01-25 23:27, Brad King wrote: Arjen, please try out each compiler of interest with CMake 2.8.0 and with CMake from CVS HEAD. Remove all plplot language module files to see how much works out of the box. I will try this out as soon as possible. Regards, Arjen _

Re: [CMake] Please support FindLAPACK/FindBLAS for C/C++-only projects

2010-01-22 Thread Arjen Markus
Hi Jed, yes, I'd say so. I have seen, I think, three or four different schemes over the years, so that is fairly manageable. Regards, Arjen On 2010-01-22 10:15, Jed Brown wrote: On Fri, 22 Jan 2010 10:05:19 +0100, Arjen Markus wrote: This would indeed not work on systems that d

Re: [CMake] What's the best way to support additional compilers for an "official" CMake language such as Fortran

2010-01-22 Thread Arjen Markus
On 2010-01-15 23:58, Alan W. Irwin wrote: The PLplot project has been supporting some additional Fortran compilers via files in cmake/modules/Platform in our source tree where we use set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/modules) This CMake_MODULE_PATH approach requires that we put

Re: [CMake] Please support FindLAPACK/FindBLAS for C/C++-only projects

2010-01-22 Thread Arjen Markus
On 2010-01-21 18:27, Mark Moll wrote: On Jan 21, 2010, at 10:22 AM, Jed Brown wrote: On Thu, 21 Jan 2010 09:17:22 -0600, Mark Moll wrote: You *can* use the Fortran BLAS/LAPACK libraries with C/C++ code. Yes, this is actually very common, but check_fortran_function_exists works by trying to l

Re: [CMake] pgf90 error

2009-11-20 Thread Arjen Markus
On 2009-11-20 16:11, John Vines (CISD/CIV) wrote: I am trying to compile a simple fortran "Hello World!" program with the Portland Group compilers (version 8.0) and am running in to a problems. I am using with CMake (ver 2.8.0-rc5). /opt/compiler/pgi/linux86-64/8.0/bin/pgf90 CMakeFil

Re: [CMake] Newbie question: cmake does not have nmake generator

2009-09-10 Thread Arjen Markus
Hi David, this is PLplot-specific, has nothing (or at least very little) to do with CMake. The problem is that the program that creates these driver files needs a few DLLs and they are not yet in the DLL subdirectory. Can you check with DependencyWalker or similar programs what DLLs are missing?

Re: [CMake] Newbie question: cmake does not have nmake generator

2009-09-10 Thread Arjen Markus
Hi David, you should start cmake in a clean directory - old stuff might get in the way otherwise, as a lot of information is being cached. Regards, Arjen On 2009-09-10 10:05, David Aldrich wrote: Hi Bill and Alan Thank you both very much for answering my question. I did indeed have an old ve

Re: [CMake] F90 and legacy F77

2009-08-19 Thread Arjen Markus
Hello James, I do not think this is going to work: object files created with g77 and gfortran are not compatible as far as I know. What constructs are they? F90/95 has one or two deleted features but most compilers will simply accept them, perhaps grudgingly. Regards, Arjen On 2009-08-18 23:3

Re: [CMake] FW: building a mixed language programm with CMake

2009-06-10 Thread Arjen Markus
Hello Natalie, the linkstep in your makefile tries to create a complete program out of hello.o, but the main program is in test.o. In the PLplot project (http://plplot.sf.net) we have a similar configuration: different programming languages that need to be combined. The approach we take is: - cr

Re: [CMake] Mixing C/CPP and Fortran

2009-05-27 Thread Arjen Markus
Hello Alin, that _could_ be a good reason :), but why not try to verify this manually: - Small C main program calling a Fortran routine - The Fortran routine in a library - Link via the Fortran compiler Some Fortran compilers will need to know that the main program is not in Fortran, others do

Re: [CMake] Mixing C/CPP and Fortran

2009-05-26 Thread Arjen Markus
Hello Alin, why not try to make Fortran the main language? If the linking step occurs via the Fortran compiler, then that should take care of the Fortran runtime libraries. This strategy won't work if you have C++ included in the mix, though - C++ requires the C++ compiler to do the linking, if I

Re: [CMake] Problem with recognising the MSYS environment

2009-04-22 Thread Arjen Markus
On 2009-04-17 10:02, Hendrik Sattler wrote: Zitat von Arjen Markus : With -G "MSYS Makefiles" I do get the proper setting for MSYS. The find_library command still insists on using the MS Visual C/C++ versions of the libraries, though, so I need to use my workaround still. But at least

Re: [CMake] Problem with recognising the MSYS environment

2009-04-17 Thread Arjen Markus
: Zitat von Arjen Markus : With -G "MSYS Makefiles" I do get the proper setting for MSYS. The find_library command still insists on using the MS Visual C/C++ versions of the libraries, though, so I need to use my workaround still. But at least one point is solved. What libraries do y

Re: [CMake] Problem with recognising the MSYS environment

2009-04-17 Thread Arjen Markus
On 2009-04-16 12:41, Maik Beckmann wrote: Arjen Markus schrieb am Donnerstag 16 April 2009 um 12:07: On 2009-04-16 10:43, Maik Beckmann wrote: MSYS has its own generator, so this should be cmake -G "MSYS Makefiles" Hm, could that be the problem? I noticed that CMake is indee

Re: [CMake] Problem with recognising the MSYS environment

2009-04-16 Thread Arjen Markus
On 2009-04-16 10:43, Maik Beckmann wrote: Arjen Markus schrieb am Donnerstag 16 April 2009 um 09:32: Hello, in the PLplot project I have run into a few problems with the MSYS environment under Windows XP. The first one is that the CMake variable MSYS does not get set properly - or else I am

[CMake] Problem with recognising the MSYS environment

2009-04-16 Thread Arjen Markus
Hello, in the PLplot project I have run into a few problems with the MSYS environment under Windows XP. The first one is that the CMake variable MSYS does not get set properly - or else I am doing something wrong. Here is what I do to work under MSYS: - Start the rxvt console (via a shortcut cre

Re: [CMake] fortran flags in a c++ linked executable

2009-04-01 Thread Arjen Markus
Isn't that a compiler flag? You would have to specify that at compile time, not link time. Regards, Arjen On 2009-04-01 01:33, James C. Sutherland wrote: Alin, Thank you for your patience. I now have this set via set( CMAKE_EXE_LINKER_FLAGS "-mbig-endian" ) However, this does not seem to af

Re: [CMake] Problem with Fortran module enclosed in #ifdef

2009-01-09 Thread Arjen Markus
> Yes, I know. But my problem is not with the compiler itself, but with > CMake. It seems to assume, that during scanning of dependency and module > information, > files with a suffix of ".f" don't have to be preprocessed, whereas files > with ".F" are preprocessed. I am searching for a way to tell

Re: [CMake] Problem with Fortran module enclosed in #ifdef

2009-01-09 Thread Arjen Markus
>> > You are right, that this is uncommon. But I'm trying to replace an > existing "build system" for some thousands of files, which preprocesses > all Fortran files, even those with ".f" suffix. Unfortunately this is > something I can't change. > I could use the approach you suggest, but I'd like

Re: [CMake] Problems with Intel Fortran 11 on Windows XP

2008-12-18 Thread Arjen Markus
>> -Original Message- >> OK, but we can't just apply the patch to CMake as it would break the >> older version of Fortran. Is there a way to detect which version is >> installed from the registry or something? I am glad you are working, >> but to get a solution for everyone, we need to g

Re: [CMake] Problems with Intel Fortran 11 on Windows XP

2008-12-15 Thread Arjen Markus
>> Hi, >> > > The output with VS2008 is: > -- > H:\Work\test_cmake_fortran_windows\build>cmake .. -G "Visual Studio 9 > 2008" > -- Check for working Fortran compiler: C:/Program > Files/intel/Compiler/11.0/066/fortran/Bin/IA32/ifort.exe > -- Check

Re: [CMake] Fortran to C mapping module

2008-10-28 Thread Arjen Markus
Bill Hoffman wrote: George Neill wrote: Bill, On Mon, Oct 27, 2008 at 8:46 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: I have just checked in a module to help with the linking of Fortran from C. I would appreciate some feedback, and perhaps some testing with different Fortran compiler

Re: [CMake] Fortran dependency fixes

2008-09-23 Thread Arjen Markus
> Am Dienstag, 23. September 2008 schrieb Arjen Markus: >> I do not know what the changes in the code actually are, but one major >> problem was that using the >> word "use" in comments caused a false dependency. I do not know about >> infinite loops though. &g

Re: [CMake] Fortran dependency fixes

2008-09-23 Thread Arjen Markus
Myers, Gary wrote: I have been using the Fortran dependency generator named makedepf90 (Erik Edelmann - 2.8.8) for years now. Recently, we have encountered a bug in this application (infinite loop within the parser). I noticed that Fortran dependencies are generated in cmake with the use of

Re: [CMake] windows command to compile

2008-08-25 Thread Arjen Markus
Ingrid Kemgoum wrote: hi, the question might be stupid but i didn't find the answer on the net. as in Linux, after running cmake on the cmake directory we do make to compile and build targets, i want to know if there is a command to compile and build targets on Windows. It depends a bit on w

Re: [CMake] Extension proposal: CheckFortranFuinctionExists.cmake

2008-06-25 Thread Arjen Markus
> On 2008-06-25 16:32+0200 Bernd Schubert wrote: > >> No, it is really no problem to link fortran libraries and to call their >> functions. It is onkly a bit nasty sometimes to write the proto types of >> the >> blas/lapack functions, since nobody seems to have created a complete set >> of >> these

Re: [CMake] Generating source code packages with Windows line endings

2008-06-23 Thread Arjen Markus
> On Monday 23 June 2008 19:26:36 Mike Jackson wrote: >> Could you list off the top of your head some of the tools that have >> given you trouble? I have never run into the line ending issues yet >> but I may in the future. I would be good to have an idea what tools >> will NOT handle unix line end

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

Re: [CMake] C++ and FORTRAN

2008-05-28 Thread Arjen Markus
Allen Barnett wrote: Hi: I have a project which consists of a C++ main and a set of FORTRAN computational routines which I'm trying to build on windows XP. I'm using visual studio 2008 (VC9) and the Intel FORTRAN compiler (10.1) on IA32. I'm also using CMake 2.6 patch 0. If I generate NMake Make

Re: [CMake] Dealing with dll PATH on Windows

2008-05-22 Thread Arjen Markus
KSpam wrote: HS, On Thursday 22 May 2008 02:05:33 Hendrik Sattler wrote: KSpam schrieb: Using this add-in would require that I create a corresponding .slnenv file for each .sln file generated by CMake. In my case, the contents of the .slnenv files can be the same (I am just setting P

Re: [CMake] Issue with CMAKE 2.6 and Windows.

2008-05-21 Thread Arjen Markus
Brad King wrote: Arjen Markus wrote: Brad King wrote: The difference in link line generation from CMake 2.4 is documented here: http://www.cmake.org/Wiki/CMake_2.6_Notes#Link_Line_Generation This documentation is helpful, but it also mentions that there are side effects and

  1   2   >