awm
awm

Reputation: 43

Setting both Debug and Release settings in Visual C++ 2008

A common mistake when configuring the compilation/linking/etc. settings in VC++ 2008 is to set them in Release but not Debug (or vice versa) rather than setting them for "All Configurations". Any suggestions on how to avoid this kind of mistake?

Some beginnings of ideas that I have:

Upvotes: 3

Views: 555

Answers (3)

Evgeny Lazin
Evgeny Lazin

Reputation: 9423

You can generate .vsproj files with CMake or Scons or similar cross platform build system.

Upvotes: 1

deemok
deemok

Reputation: 2753

We recently switched to Qt's build (qmake) tool which is capable of generating both makefiles (used in batch product build) as well as project (.vcproj) files when working on individual projects.

The nice thing about it is that we have enforced all settings one could ever wish for beforehand once for all available build targets (i.e. we have debug, release and non optimized release) and have forgotten about manipulating settings ever since.

Upvotes: 1

eugensk
eugensk

Reputation: 1942

vb or js script is perfectly ok for the task. Just dont forget to teach it that some settings should differ, such as preprocessor defines, or used runtime libraries.

Upvotes: 1

Related Questions