cFE 6.7, CMake and target-specific variables #558
-
I'm updating a legacy codebase to cFS 6.7 and CMake. Where are target-specific cmake variables meant to be set? We have multiple targets defined and its more or less working, but we have some apps and libs that set preprocessor One way is to set them in Perhaps there is a cmake hook I don't know about? Maybe something like what's discussed in #403 ? Alternatively, how is the current target exposed to app-level CMakeLists.txt? I'm familiar with CMake but still learning cFS so my apologies if I'm missing something obvious. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If it's platform dependent maybe use |
Beta Was this translation helpful? Give feedback.
If it's platform dependent maybe use
CFE_SYSTEM_PSPNAME
? Note you can get all the defined variables from the current context via the method described here:https://stackoverflow.com/questions/9298278/cmake-print-out-all-accessible-variables-in-a-script