We're using CMake, Qt, and Visual Studio. Many of our projects are configured to run automoc, via passing AUTOMOC ON
to add_library
.
We recently updated to CMake 3.9.1, and Visual Studio now shows an additional project for every automoc'd library. For example, we now have a "Core" project and a "Core_autogen" project in our solution.
(this occurs in both VS2015 and VS2017, and both Qt 5.8 and 5.9.1)
This has a few annoying consequences:
- Nearly double the number of projects, adding a lot of visual clutter.
- Automoc no longer runs when building an individual project through the UI, which can lead to subtle bugs when debugging build issues for a specific project.
Does anyone know if there's a way to restore the previous CMake behavior for autogen?
Or barring that, some way to at least reduce the visual clutter of the autogen projects?