Details
-
Bug
-
Resolution: Cannot Reproduce
-
Not Evaluated
-
None
-
Qt Creator 4.7.0-beta1
Description
In the CMake world it is very common that one would use a toolchain file in order to cross-compile projects.
With Qt Creator I have tried two ways to configure the project:
1. Setting CMAKE_TOOLCHAIN_FILE in the CMake project settings as a variable. For some reason the CMakeCache.txt doesn't contain the entry.
2. Setting CMAKE_TOOLCHAIN_FILE In the CMake Kit configuration. This variable is passed as -D parameter to CMake in server mode. Somehow it doesn't end in the CMakeCache.txt file and it doesn't properly work. It produces x86 32bit binaries.
In both cases QtCreator's .user file contains the CMAKE_TOOLCHAIN_FILE entry, but in the end the toolchain file was not used. The resulted binary was not ARM64.
I have attached a screen cast showing my attempt to configure the project. Please note that the first version from command line worked as expected.
I expect Qt Creator to support CMAKE_TOOLCHAIN_FILE case.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-17288 cmake projects using clang cross compilation cannot find stdlib include directories
- Closed
-
QTCREATORBUG-21347 Invalid(?) "no CMAKE_PREFIX_PATH" warning in Boot2Qt Kits
- Closed
-
QTCREATORBUG-22820 [QNX] Unable to create CMake project targetting QNX
- Closed