F´ Builds Don't Detect Correctly
LeStarch opened this issue · comments
F´ Version | |
Affected Component |
Problem Description
If a user does the following:
git clone https://github.com/nasa/fprime.git fprime-2
cd fprime-2
fprime-util generate
The system fails.
That code makes the assumption that fprime is in a folder called "fprime" and fails otherwise.
Context / Environment
Execute fprime-util version-check
and share the output.
Operating System: Darwin
CPU Architecture: arm64
Platform: macOS-14.4.1-arm64-arm-64bit
Python version: 3.11.0
CMake version: 3.29.0
Pip version: 22.3
Pip packages:
fprime-tools==3.4.4
fprime-gds==3.4.4a1
fprime-fpp-*==2.1.0a5
How to Reproduce
See description.
Expected Behavior
This should work in the following cases:
fprime
named something elsefprime
parallel to anotherfprime
checkout
Here is what it should do:
- Check current directory for
cmake/FPrime.cmake
. If this exists, then the current directory is "fprime" (e.g. framework_path) - Else:
- Glob match
*/cmake/FPrime.cmake
- If multiple hits: produce error. Must manually specify
framework_path
- If one match: this is "fprime"
- If zero matches: cd to parent and recurse from 1 above