4 ms·
CMake replaces `configure` scripts. It would be difficult to imagine what multi-architecture support in a single build directory / command-line invocation would
by simonask 8y ago
CMake replaces `configure` scripts. It would be difficult to imagine what multi-architecture support in a single build directory / command-line invocation would look like.
Instead, what we do is to wrap calls to CMake in a script that makes choices about build directories, which flavours to build by default, which mobile SDKs exist, etc. When producing a release, we notably don't use this, because we are precisely interested in building for each architecture in parallel on different machines.
- MrQuincle 8y agoYes, for cross-compiling to targets with different configurations we also evoke CMake with lots of options. However, that you have to wrap calls to CMake in your scripts is quite ugly. Are those scripts cross-platform for starters? As soon as you start to write code to use CMake, this seem to defeat the purpose of a build generator.
- amrox 8y agoOpenCV includes a python script to build a framework for iOS. I agree, it’s not great.
- vetinari 8y ago> It would be difficult to imagine what multi-architecture support in a single build directory / command-line invocation would look like That's exactly what MacOS fat binaries are. Single binary contains sections for multiple architectures.