[CMake] CMake generating wrong MSVC flags for static libraries?

John Drescher drescherjm at gmail.com
Tue Jun 16 21:27:17 EDT 2009


> It appears that CMake is, by default, generating Makefiles that build
> static libraries with the /MD (or /MDd) flag.  Can anyone please verify
> that?

Yes it does that for me.

>
>  If so, shouldn't CMake be using the /MT (or /MTd) flag when
> building static libraries?  Is this a known issue?
>

Not necessarily. I mean I would prefer that the crt was a dll versus a
static lib even though I am creating my own static lib. I also believe
you can override this if you want.

John


More information about the CMake mailing list