-
Notifications
You must be signed in to change notification settings - Fork 204
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
add_psp_module cmake include bug #1070
Comments
I checked the history on this one - looks like this actually introduced by nasa/PSP#172 which split the PSP targets into subdirectories. As part of this the public include files for PSP got moved from Line 65 in 56397a3
My recommendation:
FWIW, I think this is a good example of the benefit of interface libraries - it allows the PSP CMakeLists.txt file to declare where the headers actually reside, as opposed to having direct subdir paths sprinkled in other makefiles. |
The PSP header files are located in fsw/shared/inc, not fsw/shared. This corrects the reference.
Fix #1070, patch PSP include directory reference
Merged fix into |
The PSP header files are located in fsw/shared/inc, not fsw/shared. This corrects the reference.
Fix #1070 for main branch (merge of 6.8.x after bookkeeping)
Describe the bug
When making PSP modules and calling
add_psp_module()
from the respective PSP module's CMakeLists.txt file, the necessary includes are not available and the code will fail to compile due to#include "cfe_psp_module.h"
not being found.To Reproduce
Steps to reproduce the behavior:
add_psp_module(<your module> src/<your module c file>)
.psp/modules/<your module>
and#include "cfe_psp_module.h"
in it.SET(TGT1_PSP_MODULELIST <your module>)
Expected behavior
If you have the proper PSP module boilerplate set up the compile error you should see is that compiler couldn't find
"cfe_psp_module.h"
Code snips
I went ahead and modified cfe/cmake/arch_build.cmake function
add_cfe_module
include_directories line frominclude_directories(${MISSION_SOURCE_DIR}/psp/fsw/shared
to
include_directories(${MISSION_SOURCE_DIR}/psp/fsw/shared/inc
...which fixed the problem.
System observed on:
Reporter Info
Joe Mahoney - LTA Research
The text was updated successfully, but these errors were encountered: