On Sun, Nov 11, 2012 at 10:05 AM, JonY <[email protected]> wrote:

>>> Sounds like they are reinventing autotools.
>>
>> Lol, no.
>
> See the
> https://github.com/mruby/mruby/blob/master/cmake/modules/IntrospectSystem.cmake
> example.

How is this different from what you would to in configure.ac in autotools?

AC_CONFIG_MACRO_DIR = set(CMAKE_MODULE_PATH ...)

AC_PROG_CXX = project(blah CXX)

AC_CHECK_HEADERS = check_include_file

AC_CONFIG_FILES = configure_file

AC_CHECK_LIB = check_library_exists

AM_CONDITIONAL = if(...) / else(...) / endif(...)
...

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.

>> 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.


>> 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?


> We have
> already tried cmake as an experiment a few years ago, it was too rigid.

What were the "rigidities"? Maybe I can help


-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)

------------------------------------------------------------------------------
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

Reply via email to