[CMake] static and dynamic libraries based on configuration type

David Cole david.cole at kitware.com
Tue Dec 11 10:41:00 EST 2012


You can't do it with CMake as-is on a per configuration basis.


On Mon, Dec 10, 2012 at 11:18 PM, Matt Campbell <mattc at nvidia.com> wrote:

> Hi,****
>
> ** **
>
> In Visual Studio, I can have a project set to build as a static lib in one
> configuration and a dynamic lib in another configuration. I cannot figure
> out how to accomplish this in cmake. If I add two targets, one as STATIC
> and one as SHARED the targets are added to all configuration types.****
>
> ** **
>
> Thanks in advance.****
>
> ** **
>
> -Matt****
>  ------------------------------
>  This email message is for the sole use of the intended recipient(s) and
> may contain confidential information.  Any unauthorized review, use,
> disclosure or distribution is prohibited.  If you are not the intended
> recipient, please contact the sender by reply email and destroy all copies
> of the original message.
>  ------------------------------
>
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121211/c70120a9/attachment-0001.htm>


More information about the CMake mailing list