Skip to content

fprime-util generate displays generic error when library is missing target restrictions #2486

Description

@kbotteon
F´ Version 3.4.0
Affected Component fprime-util

Problem Description

@LeStarch, per our conversation earlier, you requested a bug report with the following notes:

  • fprime-util generate will produce a generic error when one of the subrepos listed as a library_location in settings.ini is missing the correct restrict_platforms() verbiage in its any of its CMake files.
  • One example is that in which a library is added to access one or several files, but a target-specific static library included as a MOD_DEP is also specified

How to Reproduce

  1. Include as a library_location any submodule or folder tree which includes a CMake that uses a path in a cmake/toolchain file
  2. Alternatively, set a MOD_DEPS that is satisfied by a lower-level CMake file with a restrict_platforms() that does not match the higher-level CMake file
  3. Observe an error like:

CMake error at fprime/cmake/target/build.cmake:75 (add_dependencies): The dependency myLib.a of target MyTarget does not exist

Expected Behavior

Reading the CMake call/error stack will eventually get you to a line pointing to the underlying offending CMake file. I'm not sure how you would like to improve this.

Metadata

Metadata

Assignees

Labels

bugcmakeIssues pertaining to the CMake build system.

Type

No type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions