no they are not submodules, I am already using CMakePresets at SubProject level for the configuration step of the SubProject they already work. But I don’t know how to also use the build preset during build step. I am using the SubProject standalone I can use:
cmake -B ./build/xyz_a --preset=a
cmake --build ./build/xyz_a --preset=a
cmake -B ./build/xyz_b --preset=b
cmake --build ./build/xyz_b --preset=b
and the behavior is as I would expected but if I am using
ExternalProject_Add(ScuSoftwareLinux
SOURCE_DIR "${CMAKE_SOURCE_DIR}/SubProject/"
STEP_TARGETS build
CMAKE_ARGS --preset=a
)
the build behaves as I would run in the SubProjects directory
cmake -B ./build/xyz_a --preset=a
cmake --build ./build/xyz_a