diff --git a/Linux32-toolchain.cmake b/Linux32-toolchain.cmake new file mode 100644 index 0000000..830e361 --- /dev/null +++ b/Linux32-toolchain.cmake @@ -0,0 +1,9 @@ +# the name of the target operating system +set(CMAKE_SYSTEM_NAME Linux) +set(CPACK_SYSTEM_NAME Linux32) + +message(STATUS "BUILDING x86-Linux") + +# Which compilers to use for C and C++ +set(CMAKE_C_COMPILER gcc -m32) +set(CMAKE_CXX_COMPILER g++ -m32)