I need to define a precompiler element(pragma? macro? not sure how you call them) as DEBUG in a cmake project loaded with VS
{
"version": "0.2.1",
"defaults": {},
"configurations": [
{
"type": "default",
"project": "CMakeLists.txt",
"projectTarget": "main.exe (bin\\main.exe)",
"name": "main.exe (bin\\main.exe)",
"pragmas": [
"DEBUG":"true"
]
}
]
}
so it can be used in the code as
#ifdef DEBUG
#if DEBUG
is it possible ?
thanks for your help