zeroc-ice / ice-builder-visualstudio

Configure Ice Builder for MSBuild from Visual Studio
https://zeroc.com
BSD 3-Clause "New" or "Revised" License
29 stars 22 forks source link

Better support for C++ projects with precompiled headers #3

Open bernardnormier opened 6 years ago

bernardnormier commented 6 years ago

If your C++ project uses a precompiled header, your best choice today is to add the rather obscure option --add-header <pch file> in the Additional Options of your Slice compilation. With this option, the precompiled header is included at the top of the generated C++ source file.

It would be nice if this support was more automatic. For example, Ice Builder could disable precompiled header file support when C++-compiling the generated C++ source files. Or alternatively, Ice Builder could offer a new SliceCompile item metadata for precompiled header support, mapped to --add-header.