Skip to content

Ninja missing byproducts on clean build #45

@codeinred

Description

@codeinred

If you download the repository fresh, and attempt to build with Ninja, the build fails with the following error:

ninja: error: '/Users/alecto/3rd/Clarabel.cpp/rust_wrapper/target/debug/libclarabel_c.dylib', needed by 'examples/c/example_expcone', missing and no known rule to make it

This is because Ninja can't find libclarabel_c.a/libclarabel_c.dylib, and the libclarabel_c custom target doesn't inform Ninja that it produces these libraries.

This can be handled by adding LIBCLARABEL_C_SHARED_PATH and LIBCLARABEL_C_STATIC_PATH as byproducts of the call to add_custom_target

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