Platform profile won't get included
Hello,
I'm trying to set up a cross platform cmake C/C++ project for Linux. Therefor I went through the CrossCompiling Wiki. My problem is, that my profile settings file won't get included. It also seems, that the CMAKE_CROSSCOMPILING
flag is not set after calling my toolchain file is finished.
- My CMake version is: 3.16.0-rc4
- CMake command:
cmake -G "Ninja" -DCMAKE_TOOLCHAIN_FILE=mypath\toolchain-linux.cmake -Bdest_dir -Hroot_dir
My cmake file consists basically of a few variable definitions at the beginning and:
SET(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-gcc)`
The profile settings file is next to my toolchain file under Platform/Linux.cmake
. I tried using different generators, but unfortunately without any success. Setting the list(APPEND CMAKE_MODULE_PATH "${mypath}")
in my toolchain not worked.
Thanks
Armin
Edited by Brad King