Notes |
|
(0036855)
|
Pascal Bach
|
2014-09-23 08:13
|
|
I assume you are talking about Visual Studio and the selection of CMAKE_GENERATOR_PLATFORM via -G "Visual Studio 2013 ARM" for example.
I think it would be good to have the value of CMAKE_SYSTEM_PROCESSOR set according to the selected platform. |
|
|
(0037075)
|
Brad King
|
2014-10-27 11:54
|
|
A challenge here is that CMAKE_SYSTEM_PROCESSOR is supposed to be set as part of the CMakeSystem.cmake, configured from CMakeSystem.cmake.in:
http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/CMakeSystem.cmake.in;hb=v3.0.2 [^]
but that configuration occurs very early, even before we have tried to enable any languages or detect any compilers. For Makefile and Ninja generators this is straightforward. When not cross-compiling the host processor can be detected immediately. When cross-compiling it is the responsibility of the CMAKE_TOOLCHAIN_FILE to set CMAKE_SYSTEM_PROCESSOR for the target.
The problem for VS generators is that the target architecture is not determined in time to configure CMakeSystem.cmake because they "cross" compile without explicitly saying so. |
|
|
(0042636)
|
Kitware Robot
|
2016-06-10 14:29
|
|
Resolving issue as `moved`.
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
|