On 5/31/07, Gustavo <[EMAIL PROTECTED]> wrote:
The alternative is running a script. But then I would be using an inferior tool to do half of CMake's job.
Write it in CMake script. That's how you get out of these problems without introducing new language dependencies. You'll have to invoke a 'cmake -P' shell, probably using EXECUTE_PROCESS before you do the rest of your configuration time stuff. 'cmake -P' shell is necessary because you can't introduce dynamic dependencies to CONFIGURE_FILE, like file writing and globbing and so forth. You have to get all this work done before your real, main cmake sees it, so that it's static and decided by that time. I have CMake scripting examples in the Chicken Scheme build, http://www.call-with-current-continuation.org , but I'm using ADD_CUSTOM_COMMAND at build time, not configuration time. Not what you want. Cheers, Brandon Van Every _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
