Hello, On 2011-06-16 14:47, Lluís Batlle i Rossell wrote: > On Thu, Jun 16, 2011 at 08:32:15AM -0400, Richard Hipp wrote: >> On Mon, Jun 13, 2011 at 7:07 PM, Steve Havelka <smh...@gmail.com> wrote: >> >>> Is it necessary that it's autoconf? Or would you take a CMake-based build >>> script? >>> >>> >>> >> Though I think autoconf is also necessary (for use by people who do not have >> cmake installed) I will also consider having appropriate cmake scripts in >> the tree, for use by people have and prefer cmake. Would anybody care to >> contribute the appropriate files? >> >> Note that Fossil has a two-stage build process. First it builds some C >> programs that are used to pre-process the C code. It then runs these C >> programs to convert the code in the source tree into new C code. The >> converted C code is then compiled by the second phase to generate the Fossil >> executable. Traditional unix "make" has no difficulty handling a two-phase >> build like this. But MSVC seems unable to do it. I observe that cmake >> claims to be able to generate MSVC projects. Does this mean that cmake is >> also incapable of doing a two-phase build? Or has cmake found some way >> around the limitations of MSVC? > > We use things like this in cmake. It allows 'custom commands'. We mostly use > the > "nmake makefiles" in cmake for msvc, instead of projects, but I think all > works > in projects too. > > cmake allows defining "pre-build" custom commands, intermediate targets > previous > to the building (like you would do in the usual make), ... > > Having CMakeLists.txt files in fossil could serve as a test for cmake helping > or > not.
In the PLplot project (http://plplot.sf.net) we use CMake for a lot of pre- and postprocessing stuff as well. And I have successfully used the generated solution and project files to build PLplot using Visual Studio. (VS does allow you to define pre-compile and post-build steps, but it is rather cumbersome) Regards, Arjen DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users