Where to Define Preprocessor Symbols in Different Build or Launch Configurations?
Posted: Wed May 29, 2024 1:58 pm
Hello all. I tried searching the various forums for answers to my questions, but the search engine keeps crashing if I enter more than one word in my advance search string. So, if this is a duplicate question, please forgive me. I tried!
I have a ESP-IDF CMAKE project for which I want to create different Build Configurations. I found that any access to "Build Configurations" is all grayed out. I did not understand this, so I decided to look into using "Launch Configurations" instead. Here (under the gear icon), it appears I can create more than one launch configuration.
So, within a given Launch Configuration, where can I define a particular Preprocessor Symbol so one Launch Configuration builds for say "PRODUCT_A" whereas another launch configuration will build for "PRODUCT_B"? I have been able to do this in the past with all IDEs using build configurations, but this Espressif IDE with the IDF seems more difficult perhaps because it is CMAKE based. What am I doing wrong? Is there a secret to using "build configurations" (caused them to not be grayed out), or do I need to do this within "launch configurations"?
Thank you for any help.
I have a ESP-IDF CMAKE project for which I want to create different Build Configurations. I found that any access to "Build Configurations" is all grayed out. I did not understand this, so I decided to look into using "Launch Configurations" instead. Here (under the gear icon), it appears I can create more than one launch configuration.
So, within a given Launch Configuration, where can I define a particular Preprocessor Symbol so one Launch Configuration builds for say "PRODUCT_A" whereas another launch configuration will build for "PRODUCT_B"? I have been able to do this in the past with all IDEs using build configurations, but this Espressif IDE with the IDF seems more difficult perhaps because it is CMAKE based. What am I doing wrong? Is there a secret to using "build configurations" (caused them to not be grayed out), or do I need to do this within "launch configurations"?
Thank you for any help.