Skip to content

cmake wpilib built without wpilibj still includes it as a dependency in wpilib-config.cmake #8422

@OhmV-IR

Description

@OhmV-IR

built allwpilib from source using:

  1. cmake . --preset default -DBUILD_SHARED_LIBS=OFF -DWITH_GUI=OFF -DWITH_SIMULATION_MODULES=OFF -DWITH_TESTS=OFF
  2. sudo cmake --build . --target install --parallel $(nproc)
  3. /usr/local/share/wpilib/wpilib-config.cmake still has add_dependency(wpilibj) even though wpilibj was not built due to -DBUILD_SHARED_LIBS=OFF
  4. find_package(wpilib REQUIRED) fails because it can't find wpilibj
    expected behavior is that the add_dependency(wpilibj) line is not present if wpilibj was not installed when building the package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions