[Cmake] Vc project file debug/release

Klaas Holwerda kholwerd at xs4all.nl
Thu, 11 Mar 2004 22:06:41 +0100


  Hi,

I need to link different libraries in debug, release etc. mode.
But don't understand how to differentiate/choose the libraries
for each specific configuration that Cmake generates in its Vc project 
files.

I do see all kinds of flag variables, for  the different configurations,
but how does one choose/set which libraries are linked for each 
configuration.
And next how to do it for things like INCLUDE_DIRECTORIES and 
ADD_DEFINITIONS etc.?

But then once i know this, what will be choosen when just using make 
files, where there would be only one valid
configuration.

Or am i missing the concept, and should the configurations generated in 
the VC project files not dependon the libraries that are used.
e.g. if some base library is compiled in debug mode, can the Cmake 
generated library always be with or  without debug?
And do all configuration settings in the project files make sence , 
independent of the  linked library its compilation mode to be debug or not?

More concrete, when my wxWindows library is compiled in debug mode, then 
my library also needs to be in debug mode,
else there is a conflict and compilation does fail.
And therefore i need to have the Cmake generated VC project file to use 
different libraries for release and debug configuration.

Thanks for some help to make me understand how i should solve this,

Klaas