On 11/02/2015 12:41 PM, Michael Jäntsch wrote:
Hi again,

Is there nobody who can help me? I thought it would be a common thing to use cmake to cross compile!? Has nobody ever used visual studio to do so?

Visual Studio itself does not have compiler selection in the same sense as is available with e.g. Makefiles or Ninja. It can not be directly told to use specific compiler paths (you will not find any compiler paths in the generated solutions/projects).

It does support "Platform Toolset"s which in manually created projects can be set/seen in the "General" project settings and in CMake generated projects can be set via the -T option [1].

I'd stick to Ninja or Makefiles for cross-compiles unless you are targeting something with pre-existing toolset support. I think e.g. Android is supported via CMAKE_SYSTEM_NAME "Android" and NVIDIA Nsight Tegra integration [2].

Nils

[1] https://cmake.org/cmake/help/v3.3/variable/CMAKE_GENERATOR_TOOLSET.html
[2] https://cmake.org/cmake/help/v3.3/release/3.1.html#nvidia-nsight-tegra
--

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

Reply via email to