Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Beom_K_
Beginner
85 Views

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

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
Black Belt
85 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.

 

Reply