[CMake] selecting different libraries for different configuration types?

Roger Dannenberg rbd at cs.cmu.edu
Mon Nov 2 09:48:35 EST 2009


Is it possible for cmake to create VisualStudio projects that have a 
different set of libraries ("AdditionalDependencies") for each 
configuration type?

Specifically, I want to link my application's Debug version with 
mylib.lib, which is a dynamic library, and my application's Release 
version with mylib-s.lib, which is a static library.

I know that I could differentiate the libraries as debug/mylib.lib and 
release/mylib.lib, but having dynamic and static library versions with 
the same name has caused me a lot of headaches, so I'm trying to keep 
the names separate.

Thanks,
Roger Dannenberg




More information about the CMake mailing list