[CMake] CMake 2.8.8 : Reproducible Crash in Mac OS X 10.8

Bill Hoffman bill.hoffman at kitware.com
Wed Aug 15 08:48:27 EDT 2012


On 8/14/2012 5:32 PM, Jerry Krinock wrote:
> Well, I can't test that because I don't want to uninstall the Xcode-Command Line Tools.  But it certainly did not work before installing them, using this script…
>
> #!/bin/bash
> GEN='Xcode'
> source "${0%/*}/common.sh" "$@"
> ARCH=-DCMAKE_OSX_ARCHITECTURES="${CMAKE_OSX_ARCHITECTURES:-i386;x86_64}"
> pushd "$BUILDDIR"
> cmake -G "$GEN" -DFB_PROJECTS_DIR="${PROJDIR}" ${ARCH} "$@" "${FB_ROOT}"
> if [ "$?" -ne 0 ]; then
>      echo "CMake failed. Please check error messages"
>      popd > /dev/null
>      exit
> else
>      popd
> fi
>
> Looking at that now, I see that there is a space between the -G and Xcode which you do not have, and also there is an awful lot of quoting going on.  Is that script setting the generator to "Xcode", as intended?
>
> Jerry
>
>
> P.S.  That script also passes*its*  first argument to cmake as the source directory, and the destination directory is $(FB_ROOT) which is defined by that common.sh incorporated script.

Not sure what went wrong.  It would have been nice to have some logs. 
Xcode should work out of the box with cmake without the command line 
tools installed.

-Bill


-- 
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573


More information about the CMake mailing list