Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
7678 Discussions

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

Beom_K_
Beginner
182 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
Black Belt
182 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