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. |
---|
|
CMakeLists.txt |
---|