In a perfect world (that is, in a world where someone takes the time to
build everything I idly think up), I would probably not integrate Lua
into CMake, or build hooks into it, but rather rip it into two pieces:
libcmake (a shared library that exposes all the functions you could call
in CMakeLists.txt, and the makefile/visualstudio/xcode/etc backends),
and cmake (a scripting language interpreter for the current
CMakeLists.txt syntax that calls into libcmake).
Then I'd expose the libcmake functions through SWIG bindings or whatever
and just tell people to use whatever language they like for their build
system. As long as the language can call C functions in a shared
library, it can be used. Someone would have to figure out what to do
with all the existing macros in /usr/share/cmake*/Modules...possibly we
just build the existing syntax into libcmake and the cmake "interpreter"
becomes a one-page C program.
But, for now, I certainly don't have time to work on it. But I'd be
interested to see if it could work.
--ryan.
In a perfect world (that is, in a world where someone takes the time to
> My change of course would be stop trying to get another language into
> CMake and to instead get the hooks put into CMake such that you can
> easily use whatever language you please.
build everything I idly think up), I would probably not integrate Lua
into CMake, or build hooks into it, but rather rip it into two pieces:
libcmake (a shared library that exposes all the functions you could call
in CMakeLists.txt, and the makefile/visualstudio/xcode/etc backends),
and cmake (a scripting language interpreter for the current
CMakeLists.txt syntax that calls into libcmake).
But, for now, I certainly don't have time to work on it. But I'd be
interested to see if it could work.
http://www.mail-archive.com/cm...@cmake.org/msg12092.html
Peter
Hi Joe,
nice to read your reply, I didn't thought I get one, the post was
mention as "just for the records".
I also didn't saw the difference between your and my approach.
But when there is a solution with less work for the cmake guys
maybe we have a chance to get it upstream.
So are you interested in reanimating this project?
I would also spend some time on it.
Peter