Passing -DWITH_CRT_DLL=1 to cmake when configuring the build should do
what you want.

On 10/24/20 5:56 AM, jwalker wrote:
> Hi, I've run cmake 3.19.0-rc1 over libjpeg-turbo on a win 10 machine
> using VD2019 x64. I noticed that if I leave all the config settings as
> default, I generate a solution with mixed CRT runtime settings across
> the projects. For example,
>
>   * djpeg has /MD /MDd
>   * turbojpeg-static has /MT /MTd
>
> I'm not sure what the ENABLE_SHARED and ENABLE_STATIC settings are
> doing, because if I just have ENABLED_SHARED ticked, I still get mixed
> CRT settings e.g.
>
>   * djpeg has /MD /MDd
>   * turbojpeg has /MT /MTd
>
> What do the ENABLED_SHARED and ENABLED_STATIC settings actually do? Do
> they affect the way the libraries statically/dynamically link to the
> CRT, or do they mean they are creating static/dynamic libraries?
>
> Is there any way to just have all the project files set to either (/MT
> /MTd) or (/MD /MDd)? Or is there a reason they are set up this way? At
> the end of the day all I really want is for turbojpeg-static be
> dynamically linked to the CRT i.e. set to (/MD /MDd). Then i can
> statically link turbojpeg-static to my C++ app which also has (/MD
> /MDd) to the CRT. I'm not sure whether I just need to make this change
> to turbojpeg-static, or to all the projects in the solution - as they
> may depend on one another.
>
> Thanks for any help.
> -- 
> You received this message because you are subscribed to the Google
> Groups "libjpeg-turbo User Discussion/Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to libjpeg-turbo-users+unsubscr...@googlegroups.com
> <mailto:libjpeg-turbo-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/libjpeg-turbo-users/ea055921-95eb-4270-a06b-909306e04037n%40googlegroups.com
> <https://groups.google.com/d/msgid/libjpeg-turbo-users/ea055921-95eb-4270-a06b-909306e04037n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"libjpeg-turbo User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to libjpeg-turbo-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/libjpeg-turbo-users/85c3a7d8-00fe-ac95-caa3-2d5cb5913a9c%40virtualgl.org.

Reply via email to