Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

Mixing VC++ compiler and Intel C++ compiler in CMake

Beom_K_
Beginner
356 Views

Hello all,

My project requires different compilers per object.  Currently we do manage this by writing manual makefiles.  

We are looking to see if we can migrate to CMake so that its easier to manage dependencies.

Unfortunately, I think CMake is not designed to support my requirement.  Do you guys know of a way to handle this? (I am on Windows platform) 

Thank you!

0 Kudos
1 Reply
TimP
Honored Contributor III
356 Views

I don't understand the distinction you make about manual makefile. I have relatively little experience with cmake, but if it doesn't support rules like 

A.obj:

      Icl -c $*.cpp

 

B.obj:

    Cl -Fa $*.obj $*.cpp

as standard make does, then I will not voluntarily be remedying that lack of experience.

For people who are reluctant to install make, it's simple enough to do

make -n > build.bat 2>1 &

which I suppose is a sort of manual makefile usage.

 

0 Kudos
Reply