Re: [cmake-developers] Using a custom DSL compiler in CMake

2016-06-22 Thread Ben Boeckel
On Tue, Jun 21, 2016 at 16:05:47 -0400, Brad King wrote: > On 06/21/2016 02:18 PM, Chris Bieneman wrote: > > Our DSL compiler can generate .d files, but hooking that up to > > CMake is a harder problem. > > With some work it may be possible to teach our Ninja generator how > to consume .d files

Re: [cmake-developers] Using a custom DSL compiler in CMake

2016-06-21 Thread Chris Bieneman
Brad, Thanks for the detailed response. This all makes a lot of sense. I’ll have to stew on this a bit and see where it leads me. In general it sounds to me like there is no easy solution here. Thanks, -Chris > On Jun 21, 2016, at 1:05 PM, Brad King wrote: > > On

Re: [cmake-developers] Using a custom DSL compiler in CMake

2016-06-21 Thread Brad King
On 06/21/2016 02:18 PM, Chris Bieneman wrote: > Our current solution to work with this tool in CMake For reference, a quick look at LLVM's `cmake/modules/TableGen.cmake` indicates that the current solution is based on add_custom_command. > The harder part is that our DSL supports C-like

Re: [cmake-developers] Using a custom DSL compiler in CMake

2016-06-21 Thread Roger Leigh
On 21/06/2016 18:18, Chris Bieneman wrote: Hello cmake-developers, I’m trying to find a solution to a long running problem in our build. In LLVM we have a domain specific language named TableGen that we use to generate header files used throughout the project. Our current solution to work

[cmake-developers] Using a custom DSL compiler in CMake

2016-06-21 Thread Chris Bieneman
Hello cmake-developers, I’m trying to find a solution to a long running problem in our build. In LLVM we have a domain specific language named TableGen that we use to generate header files used throughout the project. Our current solution to work with this tool in CMake is pretty terrible for