Hi all,
I have a question concerning Cross Compiling with CMake on Windows. I
would like to use Visual Studio but this is not a must. What I do is, I
setup a project for Cross Compiling on Linux and it works fine. Now I
want to transfer to Windows, so I set up a toolchain file which sets the
following variables:
CMAKE_SYSTEM_NAME
CMAKE_SYSTEM_PROCESSOR
CMAKE_FIND_ROOT_PATH
CMAKE_C_COMPILER
CMAKE_CXX_COMPILER
and some more stuff. Then I run my cmake gui (I tried 3.2 and 3.4rc2)
on Windows and tell it to generate a project for Visual Studio 10 and to
use the toolchain file. However, the output shows that it is trying to
use the Visual Studio compiler and then subsequently the build fails
because of some unkown compiler flags.
So my question is: Is it even possible to do what I'm trying to do? Can
I cross compile with Visual Studio or do I have to use a different
generator? All I found in the documentation is that it is possible to
cross compile with a toolchain file...
Cheers
Michael
--
Technische Universität München
Michael Jäntsch
Fakultät für Informatik
Robotics and Embedded Systems
Parkring 13
85748 Garching bei München
michael.jaent...@in.tum.de
www6.in.tum.de
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake