[CMake] selecting different libraries for different configuration types?
Pau Garcia i Quiles
pgquiles at elpauer.org
Mon Nov 2 10:11:23 EST 2009
On Mon, Nov 2, 2009 at 3:48 PM, Roger Dannenberg <rbd at cs.cmu.edu> wrote:
> 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.
Yes. Take a look at FindQt4.cmake for instance. You are interested in
the CMAKE_CONFIGURATION_TYPES stuff.
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
More information about the CMake
mailing list