On Tuesday, 4 April 2017 at 19:59:19 UTC, Dragos Carp wrote:
On Tuesday, 4 April 2017 at 18:42:45 UTC, timvol wrote:
Hi guys,

I'm trying to cross-compile a project using CMake and gdc (or better: the gdmd port). My CMakeLists-file is the following:


For cross-compiling, CMake uses a so called "toolchain" file [1] where you define the system paths similar to the target system.

I confess that never cross-compiled any code with cmake-d, but in principle it should work.

Dragos

[1] https://cmake.org/cmake/help/v3.7/manual/cmake-toolchains.7.html#cross-compiling-for-linux

Alright. Thank you Dragos. I thought it's possible without using a toolchain file but I'll give it a try :)

Reply via email to