cmake MT compiler option instead of the MD [SOLVED] Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
panagiotis
In need of some credit
In need of some credit
Posts: 7
Joined: Fri May 27, 2016 10:04 am

cmake MT compiler option instead of the MD [SOLVED]

Post by panagiotis »

Hi
I am compiling wxwidgets with cmake. But the output for windows cl compiler is with the flag /MD. Does anyone know how to get all the libs with the MT flag?
thank you.
Last edited by panagiotis on Tue Sep 15, 2020 10:45 am, edited 1 time in total.
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4204
Joined: Sun Jan 03, 2010 5:45 pm

Re: cmake MT compiler option instead of the MD

Post by PB »

Did you try setting option wxBUILD_USE_STATIC_RUNTIME to ON?
panagiotis
In need of some credit
In need of some credit
Posts: 7
Joined: Fri May 27, 2016 10:04 am

Re: cmake MT compiler option instead of the MD [SOLVED]

Post by panagiotis »

thank you. I did not notice this one.
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4204
Joined: Sun Jan 03, 2010 5:45 pm

Re: cmake MT compiler option instead of the MD [SOLVED]

Post by PB »

Only few of CMake build options are documented.

I recommend using CMake GUI to explore what options are available on your platform.
Post Reply