I'm trying to automatically build different flavors of my project. I'm using the command line to compile the project. All is working fine but now I want to define a macro in the cml (example : TEST_PROJECT). I tried using the CL environment variable but it doesn't seem to work There is an other way to add options to my project I'm using devenv.exe to compile devenv.exe project.sln /build thank you
1 Answer
There's /D for cl.exe in Visual C++. However since you already build .sln file you'll be much better off setting the necessary preprocessor symbol in the project properties. You might want to add a separate project configuration for that.
1 Comment
alejo
The problem is that I have two much configurations right now so I don't want to add a new one So i'm trying to find a solution without adding more configuration files thank you for the answer