lukka / run-cmake

GitHub Action to build C++ applications with CMake (CMakePresets.json), Ninja and vcpkg on GitHub.
MIT License
173 stars 19 forks source link

[Question]Alternatives to the ninja generator for cmake. #46

Closed XapaJIaMnu closed 3 years ago

XapaJIaMnu commented 3 years ago

Hey,

I'm writing a workflow for a cmake based project on windows and I'm experiencing a weird bug where add_subdirectory(foo) fucks up the path.

Building with CMake in build directory 'D:\a\bergamot-translator\bergamot-translator/build/Debug' ...
  ninja: error: FindFirstFileExA(3rd_party/ssplit-cpp/d:/a/bergamot-translator/bergamot-translator/build/debug): The filename, directory name, or volume label syntax is incorrect.

This only happens on windows. Mac and linux builds work fine. Do you think this is a cmake or ninja issue? Are other generators packaged with this action (eg nmake)? How do I use one?