Thanks, Johan. I just committed your patch and pushed it to 'next': http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b08657cf0fbe2d02d87a866e7c2dfc29f8d80571
Avoiding crashes. Big fan. I think all toolchain files are intended for use with only Makefile generators at this point... isn't that true? I'm not a big cross-compiler yet, but I didn't think toolchain files were intended to be used with Xcode or Visual Studio generators. Thanks for the report and the patch! David On Thu, Jan 27, 2011 at 4:25 AM, Johan Björk <[email protected]> wrote: > Hi everyone, > > If you specify a CMAKE_TOOLCHAIN_FILE without setting > CMAKE_OSX_ARCHITECTURES, you get a crash in > cmGlobalXCodeGenerator.cxx:2685. > It was a user-error on my behalf (my toolchain file was only intended > to be used on Makefile generators), but it's nice if we don't crash. > > Patch against CMake master attached. > > /Johan > > _______________________________________________ > cmake-developers mailing list > [email protected] > http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers > > _______________________________________________ cmake-developers mailing list [email protected] http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
