2014-10-20 15:25 GMT+02:00 Richard Shaw <[email protected]>:
> On Mon, Oct 20, 2014 at 8:03 AM, Barnaby Jones <simba@schrödingerskatze.de>
> wrote:
>>
>> SET( CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS}
>> -target=--target=i686-w64-mingw32" )
>> SET( CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS}
>> -target=--target=i686-w64-mingw32" )
>
>
> Complete guess here, but this looks funny. Are you sure it should be
> "-target=--target=..."

That's definitely wrong. If it's a native Clang, this option shouldn't
be necessary. What used to work for cross-compilation is
--target=i686-w64-mingw32 but recently (I think for 3.5, not sure
though) they changed the target names to some other scheme.

I'd just leave it out and make use of Clang's default target which should be OK.

Also, you can just use the "MinGW Makefiles" generator and pass
"-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++" when invoking
CMake.

Ruben

>
> Thanks,
> Richard
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to