-
Notifications
You must be signed in to change notification settings - Fork 68
Description
CMake is already used by many rocks to generate the Makefile.
I want to modify the rockspec files to also build and install the code via cmake as opposed to make.
CMake already knows how to properly invoke the chosen make program and we should use this ability to improve the cross-platform, compatibility. For example, on Windows with Visual Studio installed, CMake generates msbuild projects by default. luarocks then tries to build them using nmake and fails. CMake on the other hand should handle all builds properly.
What I propose:
In all .rockspec files I want to replace
$(MAKE) => cmake --build . --config release
$(MAKE) install => cmake --build . --config release --target install
What's the best way for me to handle this? Should I go to each rock's repository and submit PR for the .rockspec?