Feature request: Add support for include_external_msproject to Ninja generator
I have a project that is primarily C++ but also has one small Visual Studio plugin. In order to support the Visual Studio plugin in my build, I have an existing project file which I simply include using
include_external_msproject. This works fine for the Visual Studio generators however I would really like to switch to Ninja in order to speed up my build. Unfortunately it appears that
include_external_msproject does nothing with the Ninja generator.
It would be good if support for external MSBuild projects could therefore be added for other generators, perhaps by generating a target that invokes the
MSBuild tool on the supplied project file.
Alternatively, could you consider adding some way of obtaining paths to tools such as
MSBuild so that it would be easier to write a custom target to do this at least? Having access to
CMAKE_VS_MSBUILD_COMMAND would be useful here, for example, but once again this isn't set in the
Ninja generator. Perhaps an extension to the
cmake_find_program function to allow it to find build tools such as "MSbuild" or other similar tools would be possible?
Related to #19975