<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Hello Hendrik,</div><div><br></div><div>On Oct 20, 2009, at 15:56 PM, Hendrik Sattler wrote:</div><blockquote type="cite"><div><p><font size="2">> I tried. Setting CMAKE_SYSTEM_NAME to "Linux" does not seem to affect<br> > CMAKE_SYSTEM<br> <br> WHERE are you try to set this? Setting this in a CMakeLists.txt file<br> will not work. Did you read the wiki page[1] about cross-compiling?<br> Check that CMAKE_CROSSCOMPILING is set to true.<br> <br> HS<br> <br> [1]: <a href="http://www.cmake.org/Wiki/CMake_Cross_Compiling">http://www.cmake.org/Wiki/CMake_Cross_Compiling</a><br> <br> <br> </font> </p> </div> </blockquote>Thanks, I've read that before posting my first post :-)</div><div><br></div><div>I tried having toochain.cmake file in the same dir as CMakeLists.txt</div><div><br></div><div>using</div><div>cmake -DCMAKE_TOOLCHAIN_FILE=./toolchain.cmake .</div><div><br></div><div>does not seem to even read that file. I tried to state full path, move the file away, no luck.</div><div><br></div><div>So I just include()d my toolchain.cmake in CMakeLists.txt.</div><div><br></div>And, yes, CMAKE_CROSSCOMPILING is set to false.<div><br></div><div>I tried to set it to true but it has no effect.</div><div><br></div><div>By the way, on Linux host CMAKE_TOOLCHAIN_FILE variable doesn't have effect as well.</div><div><br></div><div>--</div><div>Sincerely Yours,</div><div>Vladimir Lebedev-Schmidthof</div></body></html>