You are correct but I get the same error:

new toolchain --->

set(CMAKE_SYSTEM_NAME Windows)
set(TOOLCHAIN_PREFIX i686-w64-mingw32)
set(CMAKE_SYSTEM_PROCESSOR i686)

#set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
#set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
#set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)

# mingw64 clang setup
set(CMAKE_C_COMPILER clang)
set(CMAKE_CXX_COMPILER clang++)
set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)

SET( CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} --target=i686-w64-mingw32" )
SET( CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS} 
--target=i686-w64-mingw32" )

set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})

set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

add_definitions(-D__MINGW64__)
set(CMAKE_LIBRARY_PATH /usr/lib/gcc/i686-w64-mingw32/4.9.1)

<---


Error message --->

cmake -DCMAKE_TOOLCHAIN_FILE=~/Dokumente/toolchain-ubuntu-mingw64.cmake ../
-- The C compiler identification is Clang 3.6.0
-- The CXX compiler identification is Clang 3.6.0
-- Check for working C compiler: /usr/local/bin/clang
-- Check for working C compiler: /usr/local/bin/clang -- broken
CMake Error at /usr/share/cmake-3.0/Modules/CMakeTestCCompiler.cmake:61 
(message):
   The C compiler "/usr/local/bin/clang" is not able to compile a simple 
test
   program.



<---



On 20.10.2014 15:25, Richard Shaw wrote:
> On Mon, Oct 20, 2014 at 8:03 AM, Barnaby Jones 
> <simba@schrödingerskatze.de <mailto:simba@schr%F6dingerskatze.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=..."
>
> 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