Skip to main content
Associate
June 10, 2025
Question

Using "BUILD_IN_SOURCE" false for CM4/CM7

  • June 10, 2025
  • 0 replies
  • 174 views

Hi all,

We would like to set BUILD_IN_SOURCE to false when building the two cores on the stm32h747 along with passing some other cmake options, but I don't see anywhere to change settings like that in CubeMX. Right now, we are just editing mx-generated.cmake by hand to set those options and to add more to each ExternalProject call after CMAKE_ARGS and restoring the file every time CubeMX overwrites it.

How do we pass -DOPTIONs to each ExternalProject? How would we set BUILD_IN_SOURCE (and why is it defaulted to true?) ?

Thank you