Change preprocessor values with headless build?
I'm trying to change a preprocessor value when building a project through the command line headless build.
I can add a value through the command line using -D MY_VAL=10 which works fine if that value has not previously been defined.
But I would like to have a default value defined in the IDE and then optionally overwrite it when using the command line. Setting a value in "Project Properties > C/C++ Build > settings > GCC Compiler > preprocessor" means that value will be used and the value from the command line headless build will be ignored.
Is there a way to have a default value and overwrite it through the command line? Thanks,
