cmake-d and gdc/gdmd compiler

Dragos Carp via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Apr 4 12:59:19 PDT 2017


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


More information about the Digitalmars-d-learn mailing list