MSVC: cannot move PCH files to custom source_group
When using target_precomile_headers()
on MSVC, the generated cmake_pch.hxx/cxx files are automatically placed inside source groups "Precompile Header File" and "Source Files", respectively. It would be nice to able to change the source group of these files to something else, but the source_group()
command does not appear to work on them.