set(CMAKE_SYSTEM_PROCESSOR i386) set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_SYSTEM_VERSION gnu) set(CMAKE_C_COMPILER gcc) set(CMAKE_C_COMPILER_ARG1 "-m32")