Hello again,<br><br>I am trying to cross-compile from Windows (actually Cygwin) to Linux.<br>My Toolchain file (Toolchain-linuxcpp.cmake) is as follows:<br><br>SET(CMAKE_SYSTEM_NAME Linux)<br><br>#specify the cross-compiler<br>
set (CMAKE_C_COMPILER /bin/gcc-linux)<br>set (CMAKE_CXX_COMPILER /bin/g++-linux)<br><br><br>After doing the cmake build using  cmake -DCMAKE_TOOLCHAIN_FILE=../Toolchain-linuxcpp.cmake ..<br><br>CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.<br>
Missing variable is:<br>CMAKE_C_LINK_EXECUTABLE<br><br><br>I have using both compilers separately and I didn&#39;t have any problem, but when I put them together in the Toolchain file is when this problems comes up.<br><br>
What value CMAKE_C_LINK_EXECUTABLE variable should be set? And where?<br><br>Thanks in advance<br><br>Best Regards<br><br>Enrique<br>