CMake: Only force Ninja response files on Windows
We force Ninja to create response files to work around file path length
limitations on Windows. Previously we were forcing the response file
generation for all platforms, unless we were building on Windows using
ARMClang, this was to work around a CMake issue
https://gitlab.kitware.com/cmake/cmake/-/issues/21093

Unfortunately `ar` on macOS doesn't support Ninja response files. So the
check was incorrect, as forcing a response file to be generated on macOS
causes a build failure when trying to build Mbed's unit tests.

This PR changes the logic so we only generate a response file on Windows
systems if we're not building with ARMClang.
ls
1 parent 125f584 commit ccb49b506d433b71d693d30db4ed5836148cab25
@Robert Walton Robert Walton authored on 11 May 2021
Showing 1 changed file
View
CMakeLists.txt