vs code's cmake options

hitbuyi 46 Reputation points
2022-07-05T13:24:58.82+00:00

how to set cmake's options on vscode? somebody said it is in task.json, the other said in setting.json, I test it works in setting.json
but there are still qutestions,

in setting.json, I set

{  
    "C_Cpp.errorSquiggles": "Enabled",  
  
  
     //test ok   
    "cmake.configureArgs": [  
        "-DCMAKE_BUILD_TYPE=Release",  
        "-DENABLE_TENSORRT=on",  
    ]  
      
}  

but in the bottle if cmake tool, it seems the program still build in Debug mode

217736-vscode.png

Developer technologies | C++
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.