Skip to content

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

Description

@jmahoney-dev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions