microsoft / vscode-embedded-tools

Official issue tracking repository for Microsoft's Embedded Tools VS Code extension.
MIT License
43 stars 3 forks source link

Pre-defined compiler flags are not picked up when importing .cproject file #57

Open lukas-lang opened 1 year ago

lukas-lang commented 1 year ago

Type: Bug Report

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. Create a new project in STM32CubeIDE
  2. Go to Project > Properties > C/C++ Build > Settings > MCU G++ Compiler
  3. Select some of the warning flags or a C++ standard
  4. Run the code generation
  5. Import the .cproject file into VS Cod
  6. Note the flags are not present in cmake/st-project.cmake

Expected behavior The flags should be recognized and reflected in the generated cmake file