You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cmake arg -DXBOT2_ENABLE_XENO=ON is added if calling forest as follows: forest xbot2_examples -m xeno. More than one "mode" can be specified at command line.
@MarcoRuzzon what do you think? Can we test it on your use case scenario? Can you think of a better / more flexible way to do this?
The text was updated successfully, but these errors were encountered:
Evaluated conditions (New in d7a2eee !)
For more complex use cases, the user might need to set different flags depending on more complex conditions. The first attempt at addressing this is the following:
build:
args_if:
"<python_statement_returning_bool>": -DMY_FLAG=VALUE"ubuntu_release == 18.04": -DMY_FLAG=VALUE # example
The python statement can include any python's builtins (e.g., the == in the example), plus a list of supported attributes that we, as developers, enable my appropriate modification of the forest.common.eval_handler.Locals class. Right now, we only have ubuntu_release, but I'd expect to include at least
Latest devel now supports (maybe) conditional cmake args.
The first draft is very simple. Given a recipe such as
The cmake arg
-DXBOT2_ENABLE_XENO=ON
is added if calling forest as follows:forest xbot2_examples -m xeno
. More than one "mode" can be specified at command line.@MarcoRuzzon what do you think? Can we test it on your use case scenario? Can you think of a better / more flexible way to do this?
The text was updated successfully, but these errors were encountered: