cmake --build: --target is ignored when using --preset
You can't override targets with --target. The following will run the default target rather than custom_target.
cmake --build --preset default --target custom_target
You can't override targets with --target. The following will run the default target rather than custom_target.
cmake --build --preset default --target custom_target