Skip to content

Ninja missing byproducts on clean build #45

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

Activity

  1. added a commit that references this issue on Jun 6, 2024
  2. added a commit that references this issue on Jan 13, 2025
  3. added a commit that references this issue on Feb 2, 2025
  4. goulart-paul commented on Feb 2, 2025

    @goulart-paul
    Member

    Fixed for v0.10.0

  5. added a commit that references this issue on Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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