cmd /c echo "Pre-build steps"I defined in "Project build options->Custom variables"
GOOD=falseor
GOOD=trueand in "Project build options->Pre/post build steps"
$(if(GOOD) ) {cmd /c echo "Pre-build steps" }
[100,0%] Running project pre-build steps
(false ) {cmd /c echo "Pre-build steps"} {}
Execution of ' (false ) {cmd /c echo "IRtest2 Pre-build steps"} {}' in 'U:\DONNEES\TRAVAIL_NT\CodeBlock\Arduino\IRtest2' failed.
Is it a mistake on my part or not?I'm afraid so. In SVN, see how you can use such macros/scripting foo in this project file:
Please do note that neither the variable syntax variants %if(...) nor $(if)(...) are supported for this construct.
cmd /c echo $if($GOOD){"Pre-build steps"}
echo $if($GOOD) {"Pre-build step"}or
cmd /c echo $if($GOOD) {"Pre-build step"}