Switching third-party compilers to devenv from the command line

We have an automatic build system that creates many Visual Studio 2005 solution files. These solutions contain various Visual C ++ and Intel Fortran projects.

We are in the process of updating our Intel Fortran compiler, and Visual Studio is currently configured to integrate with the old Intel compiler (version 9.1).

I am looking for a way to tell Visual Studio to use the new Intel Fortran compiler (version 11). I need to say that Studio can only do this for our compiler update project, by default it remains as it is (using version 9.1) so that our standard builds can continue without affecting the update project.

Does anyone know if this is possible? Ie, can I tell Visual Studio which Intel compiler to use on the command line?

At the moment, I can use the batch scripts that Intel provides for setting the variables LIB =, INCLUDE = and PATH =. However, when Visual Studio compiles Fortran projects, it uses version 9.1.

+1
source share
1 answer

What about the command line "/ useenv" on devenv.exe?

  C: \> devenv /?

 Microsoft (R) Visual Studio Version 8.0.50727.867.
 Copyright (C) Microsoft Corp 1984-2005.  All rights reserved.

 Use:
 devenv [solutionfile |  projectfile |  anyfile.ext] [switches]
 ...
 / useenv Use PATH, INCLUDE, LIBPATH, and LIB environment variables
                 instead of IDE paths for VC ++ builds.
+2
source

All Articles