cmake-d and gdc/gdmd compiler

timvol via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Apr 14 10:36:51 PDT 2017


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

I tried using a toolchain file but unfortunately, I'm still 
getting the same error. Using the dmd compiler works fine but not 
the GDC compiler for cross compiling :(.
Any other idea(s) what can cause the error?


More information about the Digitalmars-d-learn mailing list