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

Alan W. Irwin irwin at beluga.phys.uvic.ca
Tue Feb 13 14:50:25 EST 2018


On 2018-02-13 12:32-0500 Brad King wrote:

> On 2/9/2018 2:36 AM, Arjen Markus wrote:
>> From: Alan W. Irwin
>>> I suggest you try the names CYGWIN-NAG-Fortran.cmake and
>>> Windows-NAG-Fortran.cmake for the two separate Platform
>>> files you are trying to create for the Cygwin and
>>> MinGW-w64/MSYS2 platforms.
>
> I think those names are correct.  However, the status of CMake
> for MSYS2-native builds is unclear.  See below.
>
>> I have a Platform file “Windows-NAG-Fortran.cmake” and that is used
>> correctly if I start the NAG Fortran environment (using the MinGW
>> Makefiles generator)
>
> Good.
>
>> but if I try the same with MinGWw-w64/MSYS2, this file is clearly ignored
>
> What is the value of CMAKE_SYSTEM_NAME that is detected?
>
> Typically this should be "Windows" for a Windows-native CMake
> and "CYGWIN" for a cygwin-built CMake that is linked against the
> cygwin runtime library.
>
> For MSYS2 what CMake are you running?  A Windows CMake or one
> that came packaged by MSYS2?  Does the latter link against the
> msys2 runtime library?

While waiting for Arjen to respond from his European time zone to that
question, which cmake package for MinGW-w64/MSYS2 do you usually
recommend?  The cmake package from the mingw64 repository or the cmake
package from the msys2 repository?

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); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); 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
__________________________


More information about the CMake mailing list