On 15.02.2011 22:52, Steven Wilson wrote:
In my CMake configuration files I have something like the following:


if(SYSTEM STREQUAL "iOS")
     set(CMAKE_C_COMPILER "foo" CACHE STRING "message" FORCE)
     set(CMAKE_CXX_COMPILER "bar" CACHE STRING "message" FORCE)
endif(SYSTEM STREQUAL "iOS")

Do you know this wiki page:
http://www.cmake.org/Wiki/CMake_Cross_Compiling

I never had such problems you describe by writing a small
toolchain file and initially pass it to cmake by -DCMAKE_TOOLCHAIN_FILE=...

Later on I only call "cmake ."

Peter
_______________________________________________
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