Re: [CMake] Cross-compiling, CMAKE_C_FLAGS, and configure-time compiler tests

2011-01-20 Thread Alexander Neundorf
Hi Justin, On Tuesday 14 December 2010, Justin Holewinski wrote: > On Tue, Dec 14, 2010 at 4:45 AM, Johan Björk wrote: > > Hi Justin, > > > > I'm very unsure if this is the correct solution, but it worked for me. I > > haven't been able to find any good documentation stating how the > > CMakeCach

Re: [CMake] Cross-compiling, CMAKE_C_FLAGS, and configure-time compiler tests

2010-12-14 Thread Justin Holewinski
On Tue, Dec 14, 2010 at 4:45 AM, Johan Björk wrote: > Hi Justin, > > I'm very unsure if this is the correct solution, but it worked for me. I > haven't been able to find any good documentation stating how the CMakeCache > interacts with other parts of CMake. > > My assumption is that since CMAKE_

Re: [CMake] Cross-compiling, CMAKE_C_FLAGS, and configure-time compiler tests

2010-12-14 Thread Johan Björk
Hi Justin, I'm very unsure if this is the correct solution, but it worked for me. I haven't been able to find any good documentation stating how the CMakeCache interacts with other parts of CMake. My assumption is that since CMAKE_C{XX}_FLAGS is supposed to allow the user to set optional compilat

[CMake] Cross-compiling, CMAKE_C_FLAGS, and configure-time compiler tests

2010-12-13 Thread Justin Holewinski
I am experiencing a cross-compiling issue that I believe is related to how toolchain files interact with the configure-time compiler checks. For reference, I am targeting the iOS 4.2 SDK. I have a toolchain file that sets CMAKE_C_FLAGS, CMAKE_CXX_FLAGS, CMAKE_C_LINK_FLAGS, and CMAKE_CXX_LINK_FLAG