0

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

0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.