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

Arjen Markus arjen.markus at deltares.nl
Sun Jan 6 10:23:01 EST 2013


On Fri, 04 Jan 2013 09:09:58 -0500
  Bill Hoffman <bill.hoffman at kitware.com> 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 CMake with the "NMake Makefiles" generator from
an ordinary DOS-shell (enabled for MSVC), it all works 
fine.

When I use the MSYS shell (enabled for MSVC) to build the
tutorial via nmake, the compiler complains about the file
"e:" again. (I can not find that substring anywhere in the
gnerated files though.)

Examining the environment variable TMP reveals something
odd:
- In the DOS shell it has the value "e:\temp"
- In the MSYS shell it has the value /tmp, but it is
   actually the directory e:\temp (as I see the same
   files via "ls /tmp" as I see in the directory 
"e:\temp".

I suspect MSYS is providing some translations, which
obscure any solution. That typed, I realised that might
actually be the solution. Indeed:

When I set the environment variable TMP to "e:\\temp",
nmake and MSVC are happy with the situation and do compile
and link the sample project.

Now I will try the following:
MSYS with this adapted TMP variable and run CMake with
NMake Makefiles.

More to come.

Regards,

Arjen

 

DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited.
The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail.






More information about the CMake mailing list