diff options
-rw-r--r-- | toolchain.cmake.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toolchain.cmake.in b/toolchain.cmake.in index ae4bb87..ba349b8 100644 --- a/toolchain.cmake.in +++ b/toolchain.cmake.in @@ -1,7 +1,8 @@ set(MINGW_TOOLCHAIN @MINGW_TOOLCHAIN@) -set(CMAKE_SYSTEM_NAME Windows) set(CMAKE_CROSSCOMPILING ON) +set(CMAKE_SYSTEM_NAME Windows) +string(REPLACE "-w64-mingw32" "" CMAKE_SYSTEM_PROCESSOR "${MINGW_TOOLCHAIN}") set(CMAKE_AR "${MINGW_TOOLCHAIN}-ar") set(CMAKE_C_COMPILER "${MINGW_TOOLCHAIN}-gcc") |