Skip to content

CMAKE_RANLIB should be : in certain scenarios, instead of "" #1394

Open
@gr1mpatr0n

Description

@gr1mpatr0n

params.cache.update({"CMAKE_RANLIB": ""})

In specific scenarios, CMAKE_RANLIB will be injected into command lines which are attempting to use the empty string as a command, breaking (e.g. "" libjansson.a). I'm not entirely sure when this is a problem, but I've seen it primarily when cross-compiling for Windows using clang-cl. This appears to be corroborated by the OpenCV project, which uses CMAKE_RANLIB=: for those builds.

I'd like to understand why this happens though...

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