Skip to content

Using CMake to build the rocks #115

@Ark-kun

Description

@Ark-kun

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions