Skip to main content
Kolja Waschk
Associate III
August 18, 2026
Question

CubeIDE2.2 keeps auto-updating builder args with wrong buildDir

  • August 18, 2026
  • 1 reply
  • 28 views

Hi,

At least in one project, CubeIDE 2.2 is driving me crazy, insisting on adding a wrong path in the builder arguments. Whenever I want to build, it changes the buildPath from “build/Debug” to “../../../../build/Debug” and can’t continue. On the console, the following output appears:

“Updating builder args for config Debug to buildDir=../../../../build/Debug”

The project was initially created with CubeMX 6.17 as a CMake project, then imported with CubeIDE 2.2 “as STM32 CMake project”. Where does it get this “../../../..” from and how can I get rid of it?!

Thanks

Kolja
 

1 reply

Kolja Waschk
Associate III
August 18, 2026

It might have been related to a manual change in the MX-generated `CMakePresets.json`, where I removed the `${sourceDir}` prefix from the presets `“binaryDir”` definition 

-            "binaryDir": "${sourceDir}/build/${presetName}",
+ "binaryDir": "build/${presetName}",