On 11/11/2012 18:02, Pau Garcia i Quiles wrote: > Any decent build system needs that kind of constructs. Is the CMake > syntax a bit different from autotools'? Sure. So what? With CMake you > do exactly the same checks you did with autotools, only you may need > to consider some Windows specifics which you could not do easily with > autotools. > > The simple fact of not needing a sh shell on Windows is more than > enough to choose CMake over autotools. >
Well, now you need cmake to be installed on both Linux and Windows, as opposed to just MSYS or Cygwin on Windows. >>> Wrong. Instead of specifying triplets, you point cmake to a compiler: >>> >>> cmake -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc >>> >> >> And you have to do that with C++ compiler, RC compiler etc. > > Don't you do that with autotools too? Yes, you do. > > No, you just need to deal with the --host argument. >>> Autotools carry their own dependencies, it just so happens they are >>> sometimes installed on a linux system. And msbuild idoes not fit in with >>> your examples: if you have msvc, you have msbuild. Cmake allows the user to >>> choose his proper build system. Seriously, check out LLVM, they get stuff >>> like this right. But I'm trying to emancipate the convent here. >> >> By "happen" you mean "required" to a working system right? > > I can't see the difference from requiring autotools-dev to requiring > cmake in order to build mingw-w64? > > No, autotools is not required when building from source, only if you changed configure.ac or Makefile.am, but even those are human translatable into configure and Makefile.in if your changes are minor, I'm not so sure with cmake. >> We have >> already tried cmake as an experiment a few years ago, it was too rigid. > > What were the "rigidities"? Maybe I can help We need to a way to inject .a libraries with additional objects compiled from a different step, and a generic way to differentiate lib32/ and lib64/ def file for differing processing arguments. There were no simple ways to do that in cmake, so we kept whatever that was working.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
