Windows target_precompile_headers selects /MDd even though /MTd is specified
Have a long standing cmake script that works well, and after having hard coded my own PCH generation, decided to try out the new(ish) target_precompile_headers. The first time through it complained about mismatches of /MTd vs /MDd in many 3rd party libs that do not use target_precompile_headers. Everything in my project specifies /MTd by design.
Reverting the .cmake file changes, the problem goes away (so its not just the newer version of cmake itself I would say), and a manual inspecting of the settings in the SLN shows all targets then correctly use /MTd again.