[CMake] CMake Digest, Vol 100, Issue 40

LM lmemsm at gmail.com
Mon Aug 20 15:44:27 EDT 2012


Bill Hoffman  wrote:
> What generator is cmake picking in bootstrap?
>
> # Choose the generator to use for bootstrapping.
> if ${cmake_system_mingw}; then
>    # Bootstrapping from an MSYS prompt.
>    cmake_bootstrap_generator="MSYS Makefiles"
> else
>    # Bootstrapping from a standard UNIX prompt.
>    cmake_bootstrap_generator="Unix Makefiles"
> fi

I checked and it's setting cmake_bootstrap_generator="MSYS Makefiles"

> You could try running the cmake bootstrap command yourself from the
> bootstrap script.
>
> "${cmake_bootstrap_dir}/cmake" "${cmake_source_dir}"
> "-C${cmake_bootstrap_dir}/InitialCacheFlags.cmake"
> "-G${cmake_bootstrap_generator}" ${cmake_options}
> ${cmake_bootstrap_system_libs} "$@"
> RES=$?
>
> Then add --debug-trycompile to the line and experiment with running
> various versions of make on that file.  Sounds like it might be finding
> the wrong sh or something.  You should not have to set MAKE, make does
> that.

I'll give it a try.

>
> What shell are you running bootstrap from?
>

I'm running the standard msys shell \mingw\msys\bin\sh.


More information about the CMake mailing list