diff options
| author | Brent Cook <busterb@gmail.com> | 2023-02-27 05:48:23 -0600 |
|---|---|---|
| committer | Brent Cook <busterb@gmail.com> | 2023-02-27 05:48:23 -0600 |
| commit | b0310cb34e912d15340d02a179a81311325b4199 (patch) | |
| tree | ce2eedabfe9490442dcab492ffc10d225d9c4067 /scripts | |
| parent | 703f430428609c8c6d5b42f82522080e1c60f0ff (diff) | |
| download | portable-b0310cb34e912d15340d02a179a81311325b4199.tar.gz portable-b0310cb34e912d15340d02a179a81311325b4199.tar.bz2 portable-b0310cb34e912d15340d02a179a81311325b4199.zip | |
set CMAKE_SYSTEM_PROCESSOR when cross compiling
handle x86 as option for 32-bit x86 on Windows
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/i686-w64-mingw32.cmake | 1 | ||||
| -rw-r--r-- | scripts/x86_64-w64-mingw32.cmake | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/scripts/i686-w64-mingw32.cmake b/scripts/i686-w64-mingw32.cmake index 58efd58..bad60db 100644 --- a/scripts/i686-w64-mingw32.cmake +++ b/scripts/i686-w64-mingw32.cmake | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | SET(CMAKE_SYSTEM_NAME Windows) | 1 | SET(CMAKE_SYSTEM_NAME Windows) |
| 2 | SET(CMAKE_SYSTEM_PROCESSOR i386) | ||
| 2 | SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc) | 3 | SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc) |
| 3 | SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++) | 4 | SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++) |
| 4 | SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres) | 5 | SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres) |
diff --git a/scripts/x86_64-w64-mingw32.cmake b/scripts/x86_64-w64-mingw32.cmake index c52b606..df65165 100644 --- a/scripts/x86_64-w64-mingw32.cmake +++ b/scripts/x86_64-w64-mingw32.cmake | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | SET(CMAKE_SYSTEM_NAME Windows) | 1 | SET(CMAKE_SYSTEM_NAME Windows) |
| 2 | SET(CMAKE_SYSTEM_PROCESSOR amd64) | ||
| 2 | SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc) | 3 | SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc) |
| 3 | SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++) | 4 | SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++) |
| 4 | SET(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres) | 5 | SET(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres) |
