Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sample_defs/tables source files won't compile without table header file include #83

Open
jmahoney-dev opened this issue Apr 30, 2020 · 1 comment

Comments

@jmahoney-dev
Copy link

Describe the bug
If we want to put all tables source files in global *_defs directory in a tables dir inside *_defs they need to be able to access *_table.h which would be in the respective app's src directory.

To Reproduce
Steps to reproduce the behavior:

  1. Create directory in sample_defs called "tables"
  2. Move sample_table.c into sample_defs/tables directory
  3. Build cFS (make SIMULATION=native prep, make)
  4. Build will fail because sample_table.c can't find sample_table.h

Expected behavior
Need to be able to provide includes to sample_defs/tables. As a "hack" I add a "include_directories(fsw/src)" in CMakeLists.txt in apps/sample_app which allows sample_table.c to compile from sample_defs/tables.

System observed on:

  • Linux Ubuntu 18.04 LTS
  • Native linux cFS build
  • Versions cFE 6.7.14, OSAL 5.0.13, PSP 1.4.10

Reporter Info
Joe Mahoney - LTA Research

@skliper
Copy link
Contributor

skliper commented Jul 23, 2020

Your "hack" is actually the exact same thing I did recently. Could use an interface library also.

@skliper skliper transferred this issue from nasa/cFS Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants