johnsonjh / duma

duma: Detect Unintended Memory Access (D.U.M.A.) - A Red-Zone memory allocator

Home Page:https://github.com/johnsonjh/duma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

kheaactua opened this issue · comments

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.

Thanks for the report on this ... CMake isn't my first language but I'll see what I find out.