Skip to content

How to override cache variables on a cmake rock? #509

@tarruda

Description

@tarruda

I'd like to build the luv rock with a set of options:

luarocks build luv -DCMAKE_C_FLAGS:STRING="..." -DCMAKE_MODULE_LINKER_FLAGS:STRING="..."

How do I pass "-D assignments" to cmake when using luarocks cmake builder?

If this is not possible, is there a way to manually build/install a rock? For example, I'd like to download luv source code, manually invoke cmake with desired options, install the .so file to /usr/lib/lua/5.1 and then generate a rock manifest/spec so that luarocks will use it to resolve other rocks dependencies.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions