Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.03 KB

README.md

File metadata and controls

22 lines (15 loc) · 1.03 KB

AmigaCMakeCrossToolchains

This repo contains CMake toolchain files for configuring CMake-based projects to build binaries for Amiga-like systems.

Typical usage is as follows:

cd /project/to/build
mkdir build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=/path/to/toolchainFile.cmake -D<TOOLCHAIN_FILE_SPECIFIC_DEFINES>

Setting up the CMake for m68k-amigaos target

In order to use the m68k-amigaos.cmake toolchain file, you need to do a tiny change to your CMake install:

  • enter the directory where the CMake platform configuration files are stored - specifically the Generic.cmake file.
    • On GNU/Linux systems, this is usually stored in /usr/share/cmake-<VERSION>/Modules/Platforms/Generic.cmake
    • On Windows systems, this is usually stored in C:\Program Files\CMake\share\cmake-<VERSION>\Modules\Platform\Generic.cmake
  • copy Generic.cmake to AmigaOS.cmake

this is due to toolchain file changing CMAKE_SYSTEM_NAME to AmigaOS. On unchanged installations, this could throw an error because there's no platform file.