|
|
| 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
- Include as a
library_location any submodule or folder tree which includes a CMake that uses a path in a cmake/toolchain file
- 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
- 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.
Problem Description
@LeStarch, per our conversation earlier, you requested a bug report with the following notes:
library_locationinsettings.iniis missing the correctrestrict_platforms()verbiage in its any of its CMake files.MOD_DEPis also specifiedHow to Reproduce
library_locationany submodule or folder tree which includes a CMake that uses a path in acmake/toolchainfileMOD_DEPSthat is satisfied by a lower-level CMake file with arestrict_platforms()that does not match the higher-level CMake fileCMake error at fprime/cmake/target/build.cmake:75 (add_dependencies): The dependency myLib.a of target MyTarget does not existExpected 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.