using Build Configuration in #if

I’d like to get the build configuration name in my software C code. And use it like this :

 

 #if (BUILD_CONFIGURATION == SOFT_VARIANTE_1)

 const u8_t ku8_KeyboardConfiguration[FLEX_KEYB_NB_KEYS] =

  {

   1,2,3,4

  }

#endif

 

#if (BUILD_CONFIGURATION == SOFT_VARIANTE_2)

 const u8_t ku8_KeyboardConfiguration[FLEX_KEYB_NB_KEYS] =

  {

   4,3,2,1

  }

#endif

 

 

I Create a symbol like BUILD_CONFIGURATION with the value $(ConfigName) in path and Symbols settings for all languages.

I can see it in preprocessor CDT Managed Build Settings Entries :

But, in the soft …. All my #if are in grey … so inactive …. What is the problem ?