In CMake I could add_definition(-DXXX=YYY) and use #ifdef XXX in c codes. However when I use vscode, I failed to define a variable globally, and the code in
#ifdef XXX