After looking into this more. I’m not sure it was good to have made the changes you guys did for me.
Essentially the problem was me setting CMAKE_MAKE_PROGRAM in the toolchain.
The simple fix for this was to simply just add Ninja to the path. And that doesn’t require much effort on the developer.
Also a very similar issue occurs with FetchContent anyway. So we have to fix the toolchain code to not do that anyway, since the plan in the future is to grab the toolchain via FetchContent.
Overall what you guys had before was correct and I apologize.
My only suggestion being a slight change to the error message. So that users like me don’t take the incorrect course of action.
Error message:
CMake Error: CMake was unable to find a build program corresponding to “Ninja”.
Tip: Consider adding Ninja to your PATH so that CMake can find it.
CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
– Configuring incomplete, errors occurred!