johnsonjh / johnsonjh/duma

Specifying a CMake toolchain file prevented host/createconf from being created

Open
#175 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
121
Forks
12
Avg merge
3h 13m
Merged PRs (30d)
1

Description

When I specify a `CMAKE_TOOLCHAIN_FILE` for my aarch64le target, the `host/confdir/createconf` build that occurs during the configure step targets the target instead of the host.

To get around this I have to do two builds.

I'm not sure what the best solution is. I suspect though that maybe creating a `CMAKE_HOST_TOOLCHAIN_FILE:FILEPATH` cache variable, and then injecting it into the `execute_command` code as a `CMAKE_TOOLCHAIN_FILE` _might_ fix it. I say _might_ because toolchains are a little special in CMake.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.