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.hoff...@kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to