#define for all projects in the solution

  • Thread starter Thread starter mirek
  • Start date Start date
M

mirek

Hi,
My application consists of many projects and unfortunatelly now I'm
forced to do conditional compilation. I can #define a variable and then
#ifdef the parts of code but the problem is that I need to define it in
all the projects in the solution. I wish I set this variable in one
place. How to make it in ellegant way?
TIA

Regards,
mirek
 
mirek said:
My application consists of many projects and unfortunatelly now I'm
forced to do conditional compilation. I can #define a variable and then
#ifdef the parts of code but the problem is that I need to define it in
all the projects in the solution. I wish I set this variable in one
place. How to make it in ellegant way?

Set it in the project settings under "C++ | preprocessor defines"

--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp


Do you need daily reports from your server ?
http://sourceforge.net/projects/srvreport/
 
Jochen said:
Set it in the project settings under "C++ | preprocessor defines"

I know but this way I would have to set it in the all of the projects in
the solution.

Regards,
mirek
 
EMonaco said:
Would be nice if you could set these types of things on the solution as a
whole.

In makefile world it'd trivial. :)

BTW I wish there was better way to do organize subprojects. Now I'm
using Enterprise Template but its quite strange to do it in this way.

Regards,
mirek
 
Back
Top