[CMake] static and dynamic libraries based on configuration type

Matt Campbell mattc at nvidia.com
Tue Dec 11 13:45:04 EST 2012


Ok, that's the conclusion I came to as well. That being said, CMake's approach is fine too.

Thanks.

-Matt

From: David Cole [mailto:david.cole at kitware.com]
Sent: Tuesday, December 11, 2012 10:41 AM
To: Matt Campbell
Cc: cmake at cmake.org
Subject: Re: [CMake] static and dynamic libraries based on configuration type

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<mailto: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<http://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/f419b388/attachment.htm>


More information about the CMake mailing list