set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_SYSTEM_PROCESSOR i686) set(CMAKE_C_FLAGS "-m32 -march=i686") set(CMAKE_CXX_FLAGS "-m32 -march=i686") set(CMAKE_EXE_LINKER_FLAGS "-m32 -march=i686")