[CMake] Vary SUFFIX by build for SHARED MODULE?

Tessier, Philip A (TASC) Philip.Tessier at TASC.COM
Fri Jul 11 12:20:26 EDT 2014


All, greetings and thank you!

I have a requirement to produce (on Windows, using Visual Studio) a "plugin" (DLL) whose suffix varies by build. For example, foo.plugin (for Release) and foo.pluginD (for Debug). I expect to use:

add_library(foo MODULE ${Sources})

and am hoping for a SUFFIX_DEBUG, SUFFIX_RELEASE-type variable to specify, like:

set(SUFFIX ".plugin")
set(SUFFIX_DEBUG ".pluginD")

Any help will be appreciated!
Thanks,

Phil


Philip A. Tessier
[cid:image001.jpg at 01CF9CFA.188BB5C0]

Tri-Service Research Laboratory (TSRL)
4141 Petroleum Road, Ste 2115E
JBSA Fort Sam Houston TX 78234-2644
210-867-6775 mobile
210-539-8273 office
Philip.Tessier at tasc.com<mailto:Philip.Tessier at tasc.com>
philip.a.tessier.ctr at mail.mil<mailto:philip.a.tessier.ctr at mail.mil>


CONFIDENTIALITY NOTICE: This message and any attachments or files transmitted with it (collectively, the "Message") are intended only for the addressee and may contain information that is privileged, proprietary and/or prohibited from disclosure by law or contract. If you are not the intended recipient: (a) please do not read, copy or retransmit the Message; (b) permanently delete and/or destroy all electronic and hard copies of the Message; (c) notify us by return email; and (d) you are hereby notified that any dissemination, distribution or copying of the Message is strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140711/733aa568/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 1098 bytes
Desc: image001.jpg
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140711/733aa568/attachment.jpg>


More information about the CMake mailing list