[CMake] ifort and msys == trouble

Stefan Buschmann s_buschmann at gmx.de
Sun May 18 16:35:53 EDT 2008


Hi,

I don't know ifort, but I had the same problem with Makefiles and MSYS a 
while ago.

> Since it works with cygwin I assume ifort knows cygwin and handles the forward 
> slash right.  Does anyone know if ifort has a flag or environment variable 
> name to set which tells ifort its working on windows.
>   
There is nothing ifort could do about this. Every command line parameter 
starting with a slash ('/') will be replaced by MSYS with the 
corresponding windows path ('/foo/bar' will be translated to something 
like 'C:\msys\foo\bar' I think). So the parameter will be translated 
before ifort is even being executed. Since there is no way for MSYS to 
know whether "/something" is a path that has to be translated or a 
command line parameter, the only solution should be to use '-' instead 
of '/'.

Stefan



More information about the CMake mailing list