Page 1 of 1

cmake MT compiler option instead of the MD [SOLVED]

Posted: Thu Sep 10, 2020 6:31 pm
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.

Re: cmake MT compiler option instead of the MD

Posted: Thu Sep 10, 2020 7:02 pm
by PB
Did you try setting option wxBUILD_USE_STATIC_RUNTIME to ON?

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

Posted: Tue Sep 15, 2020 10:45 am
by panagiotis
thank you. I did not notice this one.

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

Posted: Tue Sep 15, 2020 5:44 pm
by PB
Only few of CMake build options are documented.

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