[CMake] Using icc on Windows
Bill Hoffman
bill.hoffman at kitware.com
Thu Apr 19 10:44:12 EDT 2007
Alexia Rodríguez Ruano wrote:
>
> I have a similar problem. I would like to build ITK usingthe Intel
> compiler for Visual studio platform. However when I chooose the
> platform Visual Studio on CMake, it uses the cc compiler by default,
> and not the intel one. If you change the CMAKE_CXX_COMPILER later it
> has no effect. I Know that on unix yo can solve it using
> the environment variable CC.
> What can I do from Windows
You can do the same thing on windows. You can either run cmakesetup
from a command line, or you can set CC and CXX in the system variables
for the user. I think there is also a way to modify visual studio IDE
so that it will use the intel compiler by default. In that case you can
just use the ide generator in cmake to create project files that will
use icc.
-Bill
More information about the CMake
mailing list