The proper way of forcing a 32-bit compile using CMake

前端 未结 6 726
被撕碎了的回忆
被撕碎了的回忆 2020-12-07 15:40

Sorry that there are many similar questions, but I do find that Googling for CMake queries always yields similar-but-not-the-same scenarios, conflicting CMake commands and s

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-07 16:04

    I used malat's approach and made a Toolchain file.

    I have a Toolchain file that works on some Linux dists, perhaps it will give you inspiration. It may work for you as is, or you may need other ugly hacks to get other cmake scripts you rely on to work or w/e:

    https://github.com/visualboyadvance-m/visualboyadvance-m/blob/master/cmake/Toolchain-cross-m32.cmake

提交回复
热议问题