cmake-d and gdc/gdmd compiler
timvol via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Apr 5 11:54:41 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
Alright. Thank you Dragos. I thought it's possible without using
a toolchain file but I'll give it a try :)
More information about the Digitalmars-d-learn
mailing list